musaid/slim3-skeleton

Simple Slim Framework 3 skeleton with Twig & Monolog.

0.1.0 2015-12-23 05:01 UTC

This package is not auto-updated.

Last update: 2024-11-13 20:21:29 UTC


README

This is a simple skeleton project for Slim 3 that includes Twig, Flash messages and Monolog [Original Author: Rob Allen (https://github.com/akrabat)].

Create your project:

$ composer create-project -n -s stable musaid/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