2017 © Pedro Peláez
 

symfony-bundle data-generator-bundle

Akeneo PIM Bundle to generate data in order to test high volume operations

image

akeneo-labs/data-generator-bundle

Akeneo PIM Bundle to generate data in order to test high volume operations

  • Friday, October 20, 2017
  • by Akeneo
  • Repository
  • 14 Watchers
  • 8 Stars
  • 1,124 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 5 Open issues
  • 18 Versions
  • 4 % Grown

The README.md

DataGeneratorBundle

Build Status, (*1)

This bundle generates file data in the native Akeneo CSV format., (*2)

It's able to generate products and attributes information (including families and attributes options)., (*3)

So you need a PIM system with channels, locales and currency already setup., (*4)

From that, this bundle will generate valid product and attribute data., (*5)

Compatibility

This bundle is compatible with Akeneo PIM 1.3, 1.4, 1.5 & 1.6., (*6)

As Akeneo PIM 1.7 exposes a Web API, this Web API can be used to inject data without having to install a bundle in it., (*7)

Here is an example of a simple command line tool which generates & injects data through the Web API., (*8)

Installation

 $ composer.phar require akeneo-labs/data-generator-bundle ~0.3

and update your app/AppKernel.php as follow:, (*9)

    $bundles[] = new Pim\Bundle\DataGeneratorBundle\PimDataGeneratorBundle();

How to use it

The catalog generation is done in two phases: 1. generating the catalog fixtures 2. generating the product CSV import files, (*10)

Usage:
 pim:generate:fixtures <configuration_file_path>
 pim:generate:products-file <configuration_file_path>

Arguments:
 configuration-file    YAML configuration file

Configuration file examples

Generating base fixtures:, (*11)

data_generator:
    output_dir: /tmp/fixtures/
    entities:
        attributes:
            count: 200
            identifier_attribute: "sku"
        families:
            count: 30
            attributes_count: 60
            identifier_attribute: "sku"
            label_attribute: "label"

Generating products:, (*12)

data_generator:
    output_dir: /tmp/
    entities:
        products:
            count: 1000
            filled_attributes_count: 50
            filled_attributes_standard_deviation: 10
            mandatory_attributes: [sku, name] # properties that will always be filled in with a random value
            delimiter: ,
            force_values: { manufacturer: 'FactoryInc', brand: 'SuperProd' } # properties that if they are filled in, will be filled in the given value
            start_index: 0
            categories_count: 10

More configuration examples are available in the Resources\examples directory., (*13)

Warning

Products data cannot be generated at the same time as the base fixtures (families, categories, attributes, etc...). Indeed, to generate products data, we use the objects available in the PIM (families, attributes, etc)., (*14)

So if you need to generate a full catalog, you need to: 1. generate the fixtures 2. copy the minimal data set fixtures into a new fixtures set 3. copy the generated fixtures into this new set 4. install the new fixtures set by changing the installer_data configuration 5. generate the products data, (*15)

How to use the generated attributes and families data

The generated files are meant to be used in the fixtures. Only the generated products CSV file must be imported by the import profiles., (*16)

Compatibility

This version is only compatible with Akeneo PIM with latest builds., (*17)

Credits

Thanks @fzaninotto for Faker ! (https://github.com/fzaninotto/Faker), (*18)

The Versions

20/10 2017

dev-master

9999999-dev http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

csv data e-commerce ecommerce pim akeneo performances

02/10 2017

dev-update-2.0

dev-update-2.0 http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

csv data e-commerce ecommerce pim akeneo performances

25/07 2017

dev-fix-fixtures-generation

dev-fix-fixtures-generation http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

csv data e-commerce ecommerce pim akeneo performances

23/05 2017

dev-pim-1.7

dev-pim-1.7 http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

csv data e-commerce ecommerce pim akeneo performances

15/11 2016

dev-TIP-603

dev-TIP-603 http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

csv data e-commerce ecommerce pim akeneo performances

28/07 2016

dev-pim-1.5

dev-pim-1.5 http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

csv data e-commerce ecommerce pim akeneo performances

07/07 2016

dev-generate-associations

dev-generate-associations http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

csv data e-commerce ecommerce pim akeneo performances

13/04 2016

dev-PIM-5363-with-rules

dev-PIM-5363-with-rules http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

csv data e-commerce ecommerce pim akeneo performances

16/03 2016

1.5.0

1.5.0.0 http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

csv data e-commerce ecommerce pim akeneo performances

16/03 2016

dev-pim-1.4

dev-pim-1.4 http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

csv data e-commerce ecommerce pim akeneo performances

16/03 2016

v1.4.0

1.4.0.0 http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

csv data e-commerce ecommerce pim akeneo performances

04/03 2016

dev-poc_job_generator

dev-poc_job_generator http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

csv data e-commerce ecommerce pim akeneo performances

26/02 2016

dev-fix-variant

dev-fix-variant http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

csv data e-commerce ecommerce pim akeneo performances

28/10 2015

0.2

0.2.0.0 http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

csv data e-commerce ecommerce pim akeneo performances

24/09 2015

dev-generate_locales

dev-generate_locales http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

csv data e-commerce ecommerce pim akeneo performances

13/03 2015

dev-config_file

dev-config_file http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

csv data e-commerce ecommerce pim akeneo performances

26/02 2015

0.1

0.1.0.0 http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

csv data e-commerce ecommerce pim akeneo performances

29/10 2014

dev-faker_providers

dev-faker_providers http://akeneo.com

Akeneo PIM Bundle to generate data in order to test high volume operations

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

csv data e-commerce ecommerce pim akeneo performances