dev-master
9999999-devSimple Slim Framework 3 skeleton with Twig, Monolog, Doctrine in Sqlite.
MIT
The Requires
skeleton mvc slim-framework sqlite
Simple Slim Framework 3 skeleton with Twig, Monolog, Doctrine in Sqlite.
This is a simple skeleton project for Slim 3 that includes Doctrine, Twig, Flash messages and Monolog., (*1)
Base on https://github.com/akrabat/slim3-skeleton and https://github.com/vhchung/slim3-skeleton-mvc, (*2)
Create your project:, (*3)
$ composer create-project -n -s dev agustim/slim3-skeleton-mvc-sqlite your-app
, (*4)
Create database: $ cat sql/blog.sql | sqlite3 sql/blog.sqlite
, (*5)
$ cd your-app $ php entities_generator.php
Add namespace for each model: namespace App\Model;
, (*6)
Notice: Delete all models before re-generate to update models., (*7)
$ cd your-app
$ php -S 0.0.0.0:8888 -t public/
Set logs
and cache
folder permission to writable when deploy to production environment, (*8)
app
: Application codeapp/src
: All class files within the App
namespaceapp/templates
: Twig template filescache/twig
: Twig's Autocreated cache fileslog
: Log 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/src/controllers/HomeController.php
: Controller class for the home pageapp/src/models/Post.php
: Entity class for post tableapp/templates/home.twig
: Twig template file for the home pageSimple Slim Framework 3 skeleton with Twig, Monolog, Doctrine in Sqlite.
MIT
skeleton mvc slim-framework sqlite