Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akrabat/slim3-skeleton
Simple Slim Framework 3 skeleton with Twig & Monolog
https://github.com/akrabat/slim3-skeleton
Last synced: 2 days ago
JSON representation
Simple Slim Framework 3 skeleton with Twig & Monolog
- Host: GitHub
- URL: https://github.com/akrabat/slim3-skeleton
- Owner: akrabat
- License: bsd-3-clause
- Created: 2015-05-12T08:25:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-06T22:01:14.000Z (almost 8 years ago)
- Last Synced: 2025-01-15T14:22:20.075Z (9 days ago)
- Language: PHP
- Size: 35.2 KB
- Stars: 345
- Watchers: 38
- Forks: 99
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slim 3 Skeleton
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:
1. `$ cd my-app`
2. `$ php -S 0.0.0.0:8888 -t public public/index.php`
3. Browse to http://localhost:8888## Key directories
* `app`: Application code
* `app/src`: All class files within the `App` namespace
* `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