Download the PHP package liryan/dbfiller without Composer

On this page you can find all versions of the php package liryan/dbfiller. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dbfiller

安装说明:

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

使用说明

在config/app.php中添加provider

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

生成配置文件

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

配置文件说明

格式说明

字符串格式:[%|#][max-min][u/d/s/f/p]

解释 % 随机数据 #  唯一数据 max-min: 数字:最大位数-最小位数 字符:字符个数 浮点:总位数,小数位数

u/d/s/f/p:  
    u:无符号整数
    d:有符号整数
    s:字符串
    f:有符号浮点数
    p:无符号浮点

` 例如邮件字段格式: 'format'=>'#16-4s@%20-1s.%3-2s' 唯一的用户名(4-16个字符) @ 域名1-20字符,后缀2-3字符

闭包格式:直接传递一个闭包函数,则数据调用你的闭包函数生成

例如

引用数据说明:
  格式:[%|#].[表名].[字段名]
  %:可以重复[一对多],#:不重复[两个表一一对应],   如 from="#.member.id' 表示此字段的值来自member表中的id字段,并且是顺序取值

配置实例

QQ:79509281


All versions of dbfiller with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package liryan/dbfiller contains the following files

Loading the files please wait ....