n270 / slim3-skeleton-illuminate
Simple Slim Framework 3 skeleton with Twig & Monolog & illuminate.
dev-master
2018-01-26 09:44 UTC
Requires
- filp/whoops: 2.*
- fzaninotto/faker: *
- illuminate/database: *
- league/plates: *
- monolog/monolog: *
- php-console/php-console: ^3.1
- slim/flash: ^0.1.0
- slim/slim: ^3.0
- slim/twig-view: ^2.0
- symfony/var-dumper: *
- twig/twig: 1.*
- zeuxisoo/slim-whoops: 0.5.*
This package is auto-updated.
Last update: 2025-01-10 05:45:39 UTC
README
2016-05-04
Slim 3 Skeleton with illuminate & whoops
Create project
$ composer create-project -n -s dev n270/slim3-skeleton-illuminate my-app
change app/database.php
fill the database connection information into app/database.php
Key directories
app
: Application codeapp/src
: All class files within theApp
namespaceapp/templates
: Twig template filescache/twig
: Twig's Autocreated cache files, please give this folder write permission.log
: Log files, please give this folder write permission.public
: Webserver rootvendor
: Composer dependencies
Key files
public/index.php
: Entry point to applicationapp/settings.php
: Configurationapp/database.php
: Database 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 pageapp/src/model/users.php
: illuminate database model template
Other step please see the origin step below!
Special Thanks~ Origin from https://github.com/akrabat/slim3-skeleton
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 -n -s 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