dev-master
9999999-devSlim Framework 3 skeleton.
MIT
The Requires
skeleton mvc slim-framework sqlite
Slim Framework 3 skeleton.
This is a simple skeleton project for Slim 3 that includes FluentPDO, Twig and Monolog., (*1)
Base on https://github.com/vhchung/slim3-skeleton-mvc, (*2)
Create your project:, (*3)
$ composer create-project -n -s dev mrmoneyc/slim-mvc-skeleton YOUR_APP_NAME
, (*4)
Create database: $ cat sql/db.sql | sqlite3 storage/db/db.sqlite
, (*5)
$ cd YOUR_APP_NAME
$ php -S 0.0.0.0:8888 -t public/
$ cd YOUR_APP_NAME
$ phpcs
$ cd YOUR_APP_NAME
$ phpunit
Set storage/
folder permission to writable when deploy to production environment, (*6)
app
: Application codeapp/controllers
: Controller filesapp/models
: Model filesapp/templates
: Template filesstorage/log
: Log filesstorage/db
: SQLite DB filespublic
: Webserver rootvendor
: Composer dependenciessql
: sql dump file for sample databasepublic/index.php
: Entry point to applicationapp/settings.php
: Configurationapp/dependencies.php
: Services for Pimpleapp/middleware.php
: Application middlewareapp/routes.php
: All application routes are hereapp/controllers/IndexController.php
: Controller class for the home pageapp/models/ConfigurationModel.php
: Model class for configurations tableapp/templates/index.twig
: Template file for the home pageSlim Framework 3 skeleton.
MIT
skeleton mvc slim-framework sqlite