DEPRECATED Please consider using Akeneo Data Loader
Akeneo Import simplifies data import to Akeneo PIM.
Using this library you can create easy-to-use commands to modify product data and related PIM entities like categories. It supports synchronous import via Akeneo API or asynchronous import using message brokers like RabbitMQ.
- Import from external systems (legacy PIM or regular data providers).ย
- Mass media file import.
- Import from older Akeneo versions.
- Data generation for testing, local development or performance benchmarking.
- Batch data transformation (e.g. if you can't implement mass actions in Akeneo e.g. in Serenity edition).
composer require aa/akeneo-import
$command = new Product\Create('tshirt-red-xl');
$importer = (new ApiImporterFactory())->createByCredentials('http://akeneo', 'client_id', 'secret', 'user', 'pass');
$importer->import([$command]);
For mass imports you can use message broker like RabbitMQ.
$command = new Product\Create('tshirt-red-xl');
$queue = (new QueueFactory())->createByDsn('dsn://mq', 'messages');
$queue->enqueue($command);
$queue = (new QueueFactory())->createByDsn('dsn://mq', 'messages');
$importer = (new ApiImporterFactory())->createByCredentials('http://akeneo', 'client_id', 'secret', 'user', 'pass');
$importer->importQueue([$command]);