akrabat / slim3-skeleton
Simple Slim Framework 3 skeleton with Twig & Monolog.
Installs: 7 217
Dependents: 0
Suggesters: 0
Security: 0
Stars: 344
Watchers: 38
Forks: 99
Open Issues: 9
Type:project
Requires
- monolog/monolog: ^1.13
- slim/flash: ^0.1.0
- slim/slim: ^3.0
- slim/twig-view: ^2.0
This package is auto-updated.
Last update: 2024-12-06 09:56:08 UTC
README
This is a simple skeleton project for Slim 3 that includes Twig, Flash messages and Monolog.
Create your project:
$ composer create-project --no-interaction --stability=dev akrabat/slim3-skeleton my-app
Run it:
$ cd my-app
$ php -S 0.0.0.0:8888 -t public public/index.php
- Browse to http://localhost:8888
Key directories
app
: Application codeapp/src
: All class files within theApp
namespaceapp/templates
: Twig template filescache/twig
: Twig's Autocreated cache fileslog
: Log filespublic
: Webserver rootvendor
: Composer dependencies
Key files
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/templates/home.twig
: Twig template file for the home page