Download the PHP package itinysun/tp-model-helper without Composer
On this page you can find all versions of the php package itinysun/tp-model-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download itinysun/tp-model-helper
More information about itinysun/tp-model-helper
Files in itinysun/tp-model-helper
Download itinysun/tp-model-helper
More information about itinysun/tp-model-helper
Files in itinysun/tp-model-helper
Vendor itinysun
Package tp-model-helper
Short Description a vendor for thinkphp6.*,help generate phpdocs for model class
License Apache-2.0
Package tp-model-helper
Short Description a vendor for thinkphp6.*,help generate phpdocs for model class
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package tp-model-helper
ThinkPHP6 模型注释和模型字段自动生成助手
功能
- 根据数据库的字段,以及模型的获取器和修改器等方法,自动生成模型的注释。以便于IDE可以获得类型提示。
- 根据模型字段写入schema,以后发布项目无需更新字段缓存,查看https://www.kancloud.cn/manual/thinkphp6_0/1037581了解schema
安装
composer require itinysun/tp-model-helper
修改 配置文件
config/console/model_help
确保已经配置了数据库连接,并且可以连接到数据库
使用方法
//更新所有模型
php think model:help
//更新指定模型
php think model:help app\model\User app\model\Post
//清理所有模型
php think model:help -C
//清理指定模型
php think model:help app\model\User app\model\Post -C
可选参数
--clean [-C] 清理模式,根据提示清理生成的注释和字段
--overwrite [-O] 强制覆盖已有的属性注释
感谢
本项目修改自 yunwuxin/think-model-helper
All versions of tp-model-helper with dependencies
PHP Build Version
Package Version
Requires
topthink/framework Version
^6.0
symfony/class-loader Version ^2.3|^3.0
phpdocumentor/reflection-docblock Version ^3.1
topthink/think-helper Version ^3.0
symfony/class-loader Version ^2.3|^3.0
phpdocumentor/reflection-docblock Version ^3.1
topthink/think-helper Version ^3.0
The package itinysun/tp-model-helper contains the following files
Loading the files please wait ....