2017 © Pedro Peláez
 

project slim3-eloquent-skeleton

Simple Slim Framework 3 skeleton with scaffold tool, migrations,Twig,eloquent & Monolog.

image

mrcoco/slim3-eloquent-skeleton

Simple Slim Framework 3 skeleton with scaffold tool, migrations,Twig,eloquent & Monolog.

  • Thursday, January 14, 2016
  • by mrcoco
  • Repository
  • 10 Watchers
  • 58 Stars
  • 699 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 24 Forks
  • 6 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

Slim 3 Skeleton

This is a simple skeleton project fork from akrabat/slim3-skeleton that includes scaffold tool, migrations,auth,Twig, Flash messages, eloquent ORM and Monolog., (*1)

Create your project:

$ composer create-project -n -s dev mrcoco/slim3-eloquent-skeleton my-app

Run it:

  1. $ cd my-app
  2. Change database setting app\setting.php
  3. $ vendor/davedevelopment/phpmig/bin/phpmig migrate
  4. $ php -S 0.0.0.0:8888 -t public public/index.php
  5. 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

CLI Tools

  • Currently there are 3 supported commands:
  • php cli.php create:action MyActionClassName
  • php cli.php create:middleware MyMiddlewareClassName
  • php cli.php create:model MyModelClassName
  • php cli.php create:scaffold MyModuleName

Migration

  • migrate all data
  • php cli.php migrate, (*2)

  • Confirmation of status, (*3)

  • php cli.php status, (*4)

  • Creating // migration file, (*5)

  • php cli.php generate [MigrationName], (*6)

  • //Execution of migration, (*7)

  • php cli.php migration, (*8)

  • // I one Back, (*9)

  • php cli.php rollback, (*10)

  • // Return all, (*11)

  • php cli.php rollback -t 0, (*12)

  • // Go back to the time of completion of the specified MigrationID, (*13)

  • php cli.php rollback -t [MigrationID], (*14)

  • // Only specified MigrationID the migration / roll back, (*15)

  • php cli.php [up | down] [MigrationID]

Demo User:

  1. admin username: admin@slim.dev password: password
  2. moderator username: moderator@slim.dev password: password
  3. user username: user@slim.dev password: password

The Versions

14/01 2016

dev-master

9999999-dev

Simple Slim Framework 3 skeleton with scaffold tool, migrations,Twig,eloquent & Monolog.

  Sources   Download

BSD-3-Clause

The Requires

 

auth skeleton eloquent console migration scaffold slim-framework cli-tool csfr