PHPackages                             liryan/dbfiller - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. liryan/dbfiller

ActiveLibrary[Database &amp; ORM](/categories/database)

liryan/dbfiller
===============

an automatic data generator for mysql based on laravel

0.0.1(9y ago)7381[1 issues](https://github.com/liryan/dbfiller/issues)MITPHPPHP &gt;=5.5.0

Since Mar 28Pushed 9y ago3 watchersCompare

[ Source](https://github.com/liryan/dbfiller)[ Packagist](https://packagist.org/packages/liryan/dbfiller)[ RSS](/packages/liryan-dbfiller/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

安装说明:
=====

[](#安装说明)

`composer require 'liryan/dbfiller' 'dev-master'`

使用说明
====

[](#使用说明)

在config/app.php中添加provider

```
providers=[
    ...
    Dbfiller\DBFillerProvider::class,
],
```

在Lumen框架中，修改bootstrap/app.php

```
...
$app->register(Dbfiller\DBFillerProvider::class);
```

生成配置文件
======

[](#生成配置文件)

laravel运行命令，生成config/dbfiller.php

`php artisan vendor:publish`

Lumen中生成配置文件复制到项目config目录，不存在就新建

`cp vendor/liryan/dbfiler/src/config/dbfiller.php config/`

根据数据库修改此文件 然后运行

`php artisan mysql.filler`

测试format

`php artisan mysql.filler 'format' --count=1`

配置文件说明
======

[](#配置文件说明)

```
