yunwuxin / think-model-helper
Installs: 1 070
Dependents: 1
Suggesters: 0
Security: 0
Stars: 28
Watchers: 2
Forks: 10
Open Issues: 3
Requires
- phpdocumentor/reflection-docblock: ^3.1
- symfony/class-loader: ^2.3|^3.0
- topthink/framework: ^6.0
- topthink/think-helper: ^3.0
Requires (Dev)
- phpunit/phpunit: ^5.6
README
ThinkPHP6 自动生成模型的注释
安装
composer require yunwuxin/think-model-helper
使用方法
//所有模型
php think model:annotation
//指定模型
php think model:annotation app\\User app\\Post
可选参数
--dir="models" [-D] 指定自动搜索模型的目录,相对于应用基础目录的路径,可指定多个,默认为app/model
--ignore="app\\User,app\\Post" [-I] 忽略的模型,可指定多个
--overwrite [-O] 强制覆盖已有的属性注释