dev-master
9999999-devSimple Slim Framework 3 skeleton with Twig, Monolog, Doctrine.
MIT
The Requires
skeleton mvc slim-framework
Wallogit.com
2017 © Pedro Peláez
Simple Slim Framework 3 skeleton with Twig, Monolog, Doctrine.
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, (*2)
Create your project:, (*3)
$ composer create-project -n -s dev vhchung/slim3-skeleton-mvc your-app, (*4)
Execute your-app\sql\blog.sql to create sample database (MySQL), (*5)
entities_generator.php and app/settings.php
$ 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.
MIT
skeleton mvc slim-framework