akrabat / slim3-skeleton
Simple Slim Framework 3 skeleton with Twig & Monolog.
Installs: 7 234
Dependents: 0
Suggesters: 0
Security: 0
Stars: 343
Watchers: 35
Forks: 97
Open Issues: 9
Type:project
pkg:composer/akrabat/slim3-skeleton
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: 2025-10-06 11:46:51 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 code
- app/src: All class files within the- Appnamespace
- app/templates: Twig template files
- cache/twig: Twig's Autocreated cache files
- log: Log files
- public: Webserver root
- vendor: Composer dependencies
Key files
- public/index.php: Entry point to application
- app/settings.php: Configuration
- app/dependencies.php: Services for Pimple
- app/middleware.php: Application middleware
- app/routes.php: All application routes are here
- app/src/Action/HomeAction.php: Action class for the home page
- app/templates/home.twig: Twig template file for the home page