a slim 3 framework extend library

inhere 40c8f45dc8 up 2 years ago
doc 7cc1ce0633 some bug fixed for RESTFul controller 2 years ago
examples 40c8f45dc8 up 2 years ago
src 8b4f289927 update .. 2 years ago
.gitignore 5c3f07193c init project 3 years ago
LICENSE 21d36b2a44 Initial commit 3 years ago
README.md 47982015a7 update, add auto gen command class 2 years ago
composer.json 1bc2121419 update 2 years ago




slim 3 extend to MVC structure.

Some Feature :

  • Global config, Environment support
  • Language support
  • Command support
  • Twig template engine
  • Flash Messages
  • Monolog
  • Pimple Dependency Injection Container
  • Controller layer for MVC
  • RESTFul Controller
  • Model layer, database query builder.
  • Tracy Errors Handler(by whoops)


  • Use composer

edit composer.json

require add

"inhere/slim-extend": "dev-master",

run: composer update


generate class

support: model, command, controller

how to use:

php bin/console gen
php bin/console gen:model -h
  • a model
php bin/console gen:model name=rolePermission table=role_permission type=db fileds="id,int;name,string,名称;priority,int,级别;permissions,string,权限"

more see Document