This is a simple skeleton project for Slim 3 that includes Twig, TwigExtension, Flash messages, Monolog and PDO connection.
$ git clone https://github.com/arneanka/slim3-boilerplate
$ composer update
$ cd my-app
$ php -S 0.0.0.0:8888 -t public public/index.php
- Browse to http://localhost:8888
app
: Application codeapp/src
: All class files within theApp
namespaceresources/views
: Twig template filescache/twig
: Twig's Autocreated cache fileslog
: Log filespublic
: Webserver rootvendor
: Composer dependencies
public/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/Action/HomeAction.php
: Action class for the home pageapp/src/Controllers/HomeAction.php
: Home controller for the home pageresources/views/home.twig
: Twig template file for the home page
- Models to use PDO
- Sign up
- Sign in
- Simple CRUD