inhere / slim-extend
This package is abandoned and no longer maintained.
No replacement package was suggested.
A Slim Framework extension
v0.5.1
2017-06-03 16:59 UTC
Requires
- php: >=7.0.0
- inhere/library: dev-master
- inhere/library-plus: dev-master
- slim/csrf: ^0.6.0
- slim/flash: ^0.1.0
- slim/slim: ^3.1
- symfony/console: ^3.0
- symfony/yaml: ^3.0
- windwalker/compare: ^3.0
- windwalker/query: ^3.0
Requires (Dev)
- filp/whoops: 2.*
- inhere/simple-print-tool: dev-master
- inhere/slim-whoops: dev-master
Suggests
- symfony/yaml: Allow support parse yml file.
This package is auto-updated.
Last update: 2021-05-29 02:06:51 UTC
README
Description
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)
Install
- Use composer
edit composer.json
require add
"inhere/slim-extend": "dev-master",
run: composer update
Usage
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