busyphp/ide-model

用于生成BusyPHP的模型/模型字段注释或模型字段属性,以提高开发效率

v1.0.2 2023-06-12 02:21 UTC

This package is auto-updated.

Last update: 2024-04-12 04:18:38 UTC


README

用于生成BusyPHP的模型/模型字段注释或模型字段属性,以提高开发效率

安装方法

composer require busyphp/ide-model

使用说明

全部扫描并生成

使用 -A 指令即可自动扫描 core/model 目录下的所有模型/模型字段类进行生成
可配合 -D 添加自己的目录名称

php think bp:ide-model -A
php think bp:ide-model -A -D customDir -D customDir1

指定目录扫描并生成

php think bp:ide-model -D userDir0 -D userDir1

指定类目生成

支持使用 ., / 替代 \\ 方便快输入类名称

php think bp:ide-model core.model.UserModel core.model.UserModelField
php think bp:ide-model core/model/UserModel core/model/UserModelField
php think bp:ide-model core\\model\\UserModel core\\model\\UserModelField