Download the PHP package liuwave/command without Composer
On this page you can find all versions of the php package liuwave/command. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download liuwave/command
More information about liuwave/command
Files in liuwave/command
Download liuwave/command
More information about liuwave/command
Files in liuwave/command
Please rate this library. Is it a good library?
Informations about the package command
command
thinkphp 创建类库文件 扩展
安裝
composer require liuwave/command
配置
可修改配置文件 修改项目根目录下config/command.php中 stub_path ,指定stub模板文件目录,可为空
若指定stub_path,需要添加指定的stub文件
- controller.sub
- model.sub
- validate.sub
controller.sub 文件示例
model.sub 文件示例
model.sub 文件示例
stub 默认替换字段
- {%className%} : 类名
- {%actionSuffix%}: TP5 配置中的 action_suffix值
- {%namespace%} : 指定的命名空间
- {%app_namespace%} : TP5的app命名空间
- {%primary_key%} : 自定义指定的 key值
使用
`
参数
- --stub 指定加载的stub文件名称,例如php think make:controller index/Index --stub plain,将加载 stub模板文件目录/controller.plain.sub ,可为空
- --key 指定替换stub文件中{%primary_key%}的值
All versions of command with dependencies
PHP Build Version
Package Version
Requires
topthink/framework Version
~5.1
The package liuwave/command contains the following files
Loading the files please wait ....