Download the PHP package webin/build-model without Composer
On this page you can find all versions of the php package webin/build-model. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package build-model
build-table-model
composer require webin/build-model
根据表自动生成model类
Thinkphp
可结合make:command
- 根目下执行php think make:command gii-model (生成GiiModel类)
- 编辑生成的GiiModel类(代码如下)
- (重要)将GiiModel加入config/console.php(没有的话找下是否有command.php),按照已有的格式写进去('app\common\command\GiiModel' //这个是我自己项目的路径( 按照你自己的路径填写))
- 执行php think 看看是不是有gii-model
- 根目录下执行php think gii-model user (user是表名)
Laravel | Lumen
- 终端执行: php artian make:command GiiModel
- 编辑GiiModel(代码如下)
- 终端执行php artisan gii-model user 注意:user 是表名
All versions of build-model with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.0
The package webin/build-model contains the following files
Loading the files please wait ....