Git Product home page Git Product logo

entity-generator's Introduction

Maverick-Entity-Generator

This Magento extension enables you to generate entities for tests :

  • Generate Customers with fake data using FAKE library
  • Generate orders for registred customers
    • orders uses randomly Checkmo and banktransfer payment methods
    • orders uses flaterate_flaterate shipping method
  • Automatically assign created customers to website, store and group
  • Based on payment methods, order invoice and shipment can created

Requirements

  • This extension uses the PHP library "Faker".

    @see : https://github.com/fzaninotto/Faker

  • IMPORTANT !!! To create orders, this extension uses "Check", "Bank Transfer" as payment methods and "Flatrate" as shipping method, please make sure those methods are enabled

Installation

  1. First Install the PHP library FAKE :

  • In your Magento root folder, dowload composer by running : curl -sS https://getcomposer.org/installer | php

  • Or, if you don't have curl :

php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
  • Or download it manually from : Composer Website

  • Once it is downloaded, create (always in your root folder) a json file called composer.json and put in it the following content :

{
    "require":{
        "fzaninotto/faker" : "*"
    }
}
  • Finally run :

    php composer.phar install

    This will install the latest version of Faker library in a folder named "vendor" in your root directory and will also generate the autoloader automatically

  1. Install "Entity Generator" extension :

  • Install it with modman
  • Or download and install it manually
  1. Refresh your magento cache :

Log in in your magento Backend and configure the extension

When you generate an entity you can see the generation details in real time : tail -f var/log/maverick_generator.log

Shell Command Line

You can also create entities by using Shell Command Line

Examples :

  • Create 100 customers
cd /path/to/magento/
cd shell/
php generator.php create --type customer --nbr 100
  • Display entities that can be created
php generator.php info
  • Show Help
php generator.php help

Compatibility

Tested on Magento :

  • Community >= 1.7
  • Enterprise >= 1.12

Support and Contribution

If you have any issues with this extension, please open an issue on Github.

Any contributions are highly appreciated. If you want to contribute, please open pull request on GitHub.

Copyright and License

License : OSL - Open Software Licence 3.0.

Copyright : (c) 2013 Mohammed NAHHAS

entity-generator's People

Contributors

aydinhassan avatar maverick193 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.