Download the PHP package yunbuye/thinkphp-model-factory without Composer
On this page you can find all versions of the php package yunbuye/thinkphp-model-factory. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download yunbuye/thinkphp-model-factory
More information about yunbuye/thinkphp-model-factory
Files in yunbuye/thinkphp-model-factory
Download yunbuye/thinkphp-model-factory
More information about yunbuye/thinkphp-model-factory
Files in yunbuye/thinkphp-model-factory
Vendor yunbuye
Package thinkphp-model-factory
Short Description ThinkPHP 模型工厂
License MIT
Homepage http://github.com/yunbuye/thinkphp-model-factory
Package thinkphp-model-factory
Short Description ThinkPHP 模型工厂
License MIT
Homepage http://github.com/yunbuye/thinkphp-model-factory
Please rate this library. Is it a good library?
Informations about the package thinkphp-model-factory
yunbuye/thinkphp-model-factory
thinkphp 的模型工厂
方便的批量生成模型的模拟数据
说明
此为laravel的模型工厂的thinkphp的适配版,大部分功能都可用(需要手动创建工厂文件,定义数据库连接不可用)
使用
-
安装
-
建立目录
在根目录建立 "./database/factories" 工厂目录 -
使用
-
定义工厂,在工厂目录 新建和编写工厂
- 在模型中使用工厂
-
- 语言
默认中文zh_CN
可以添加配置 app.faker_locale 到配置文件进行定义
All versions of thinkphp-model-factory with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.3
topthink/framework Version 5.1.*
fzaninotto/faker Version ^1.4
symfony/finder Version ^4.2
topthink/framework Version 5.1.*
fzaninotto/faker Version ^1.4
symfony/finder Version ^4.2
The package yunbuye/thinkphp-model-factory contains the following files
Loading the files please wait ....