dipsor / csv-faker
创建带有虚拟数据的CSV文件。
dev-master
2019-11-06 22:15 UTC
Requires
- fzaninotto/faker: ^1.4
- league/csv: ^9.1
Requires (Dev)
- laravel/framework: 5.7.*
- phpunit/phpunit: 7.0.*
This package is auto-updated.
Last update: 2024-09-07 08:50:15 UTC
README
为laravel创建命令。
csv:faker:new // 使用默认选项 --load=a
- User has to interact in the console.
csv:faker:new {--load=s} {filename?} {rows?} {columns?}
- User uses the command with arguments.
- Ex: csv:faker:new {--load=s} table 15 name:firstname,surname:lastname,email:email
- will create csv file table.csv with 15 rows and 3 columns.
- columns need to be in form: columnName:fakerPropertyName.