aa/akeneo-fixture-loader

There is no license information available for the latest version (dev-master) of this package.

Akeneo PIM Fixture Loader

dev-master 2019-06-08 09:49 UTC

This package is auto-updated.

Last update: 2024-11-08 21:53:42 UTC


README

Build Status

Akeneo Fixture Loader allows you to create fixtures data for use while developing or testing your Akeneo project.

  • Loads fixture data using Akeneo REST API.
  • Uses Alice-like syntax and Faker for data generation.
  • Uses Akeneo Data Loader

Example

Load 10 products with fake skus:

use Aa\AkeneoDataLoader\Api;
use Aa\AkeneoFixtureLoader\FixtureLoaderFactory;

$apiCredentials = Api\Credentials::create('https://your.akeneo.host/', 'clientId', 'secret', 'username', 'password');

$loaderFactory = new FixtureLoaderFactory();
$loader = $factory->createByCredentials($apiCredentials);

$loader->loadData([
                             
    'product_{1..10}' => [
        'identifier' => 'test-<ean8()>',
    ]
    
]);