GithubHelp home page GithubHelp logo

danrcoull / faker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dominicwatts/faker

0.0 1.0 0.0 128 KB

Magento 2 console scripts to generate fake data on demand for products, categories, customers and orders

PHP 100.00%

faker's Introduction

Faker extension

phpcs

PHPCompatibility

PHPStan

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

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

faker's People

Contributors

dominicwatts avatar xigendominic avatar danrcoull avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.