dominicwatts / faker
Console based fake data generator - just generate what you need
Installs: 2 988
Dependents: 0
Suggesters: 0
Security: 0
Stars: 41
Watchers: 2
Forks: 9
Open Issues: 0
Type:magento2-module
Requires
- php: >=7.4.0
- dominicwatts/fakerfork: *
- magento/framework: *
- magento/module-catalog: *
- magento/module-quote: *
- magento/module-shipping: *
- symfony/console: *
README
Magento 2 extension to generate fake data.
This extension uses fzaninotto/faker
Docs for this package can be found here: https://packagist.org/packages/fzaninotto/faker
Install instructions
composer require dominicwatts/faker
php bin/magento setup:upgrade
Note: version 1.2.0 is php 7.4 compatible, use ^1.1 for < php 7.4
Usage instructions
Locale is defined inside Xigen\Faker\Helper\Data
Content is generated via the following console commands
Generate Customer
xigen:faker:customer [-w|--website WEBSITE] [-l|--limit [LIMIT]] [--] <generate>
php bin/magento xigen:faker:customer generate
php bin/magento xigen:faker:customer -w 1 generate
php bin/magento xigen:faker:customer -w 1 -l 10 generate
Generate Product
todo: link configurable/group to simples
xigen:faker:product [-w|--website WEBSITE] [-l|--limit [LIMIT]] [-t|--type [TYPE]] [--] <generate> <applyImage>
php bin/magento xigen:faker:product generate
php bin/magento xigen:faker:product -l 10 generate
php bin/magento xigen:faker:product -l 10 generate applyImage
php bin/magento xigen:faker:product -w 1 generate
php bin/magento xigen:faker:product -w 1 -l 10 generate
php bin/magento xigen:faker:product -w 1 -l 10 -t simple generate
Generate Category
xigen:faker:category [-s|--store STORE] [-l|--limit [LIMIT]] [--] <generate>
php bin/magento xigen:faker:category generate
php bin/magento xigen:faker:category -s 0 generate
php bin/magento xigen:faker:category -s 0 -l 10 generate
Generate Order
xigen:faker:order [-s|--store STORE] [-l|--limit [LIMIT]] [--] <generate>
php bin/magento xigen:faker:order generate
php bin/magento xigen:faker:order -s 1 generate
php bin/magento xigen:faker:order -s 1 -l 1 generate
Generate Review
xigen:faker:review [-s|--store STORE] [-l|--limit [LIMIT]] [--] <generate>
php bin/magento xigen:faker:review generate
php bin/magento xigen:faker:review -s 1 generate
php bin/magento xigen:faker:review -s 1 -l 10 generate