based on the skeleton akrabat/slim3-skeleton
This is a simple project for Slim 3 that includes Twig, Flash messages and Monolog. In addition this project also has Redbean and Authentication.
- 'slim_docs': http://www.slimframework.com/docs/index.html
- 'authentication' : http://github.com/neilmillard/authenticator and http://github.com/zendframework/zf2
- 'redbean': http://www.redbeanphp.com/
$ composer create-project -n -s dev neilmillard/slim3skel my-app
$ 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
namespaceapp/templates
: Twig template filescache/twig
: Twig's Autocreated cache fileslog
: Log filespublic
: Webserver rootvendor
: Composer dependencies
public/index.php
: Entry point to applicationapp/settings.php
: Configuration, copy from settings_dist.phpapp/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
Ensure the Web.config
and index.php
files are in the same public-accessible directory.
Rewrite IIS extension
: http://www.iis.net/learn/extensions/url-rewrite-module/using-the-url-rewrite-module