- 平台支持(支持Linux, Mac环境,Windows环境理论上也支持,不过未全面测试)
- 支持model数据模型自动生成
- 支持service数据服务自动生成
- 支持controller控制器自动生成
- yaf 1.0+
- git
[root@lidi home]# git clone https://github.com/autoed/art-yaf.git
Cloning into 'art-yaf'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (21/21), done.
> php art -h
@代码-优雅-生成器
@Art 使用说明
@example :
1、php art m:你的微服:模型名
2、php art c:你的微服:控制器
3、php art s:你的微服 (默认你的模块下Service.php)
-----------------------------------
|一键创建:php art a:你的微服:起个名字|
-----------------------------------
TODO-list-notice
一、创建:audiouser请遵循小驼峰法:audioUser
二、注意:不要忘记,配置路由(1.0版本不支持自动配置)
.
> php art -v
Welcome to this world
_
__ _ _ __| |_
/ _` | '__| __|
| (_| | | | |_
\__,_|_| \__|
@代码-优雅-生成器
@version : 1.0
@author : [email protected]
.
在 art 文件中
修改 变量 $authorName = '你的名字'
That is OK