n270/slim3-skeleton-illuminate

Simple Slim Framework 3 skeleton with Twig & Monolog & illuminate.

dev-master 2018-01-26 09:44 UTC

This package is auto-updated.

Last update: 2022-05-09 23:43:41 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 code
  • app/src: All class files within the App namespace
  • app/templates: Twig template files
  • cache/twig: Twig's Autocreated cache files, please give this folder write permission.
  • log: Log files, please give this folder write permission.
  • public: Webserver root
  • vendor: Composer dependencies

Key files

  • public/index.php: Entry point to application
  • app/settings.php: Configuration
  • app/database.php: Database 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
  • app/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:

  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