inhere / slim-extend
此包已被弃用,不再维护。未建议替代包。
Slim 框架扩展
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
描述
slim 3 扩展到 MVC 结构。
一些功能
- 全局配置,环境支持
- 语言支持
- 命令支持
- Twig 模板引擎
- Flash 消息
- Monolog
- Pimple 依赖注入容器
- MVC 控制层
- RESTful 控制层
- 模型层,数据库查询构建器。
- Tracy 错误处理器(by whoops)
安装
- 使用 composer
编辑 composer.json
require 添加
"inhere/slim-extend": "dev-master",
运行: composer update
使用
生成类
支持: 模型、命令、控制器
如何使用
php bin/console gen php bin/console gen:model -h
- 一个模型
php bin/console gen:model name=rolePermission table=role_permission type=db fileds="id,int;name,string,名称;priority,int,级别;permissions,string,权限"
更多请见 文档