aa / akeneo-import
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.
Library for product import to Akeneo PIM
dev-master
2019-05-26 21:54 UTC
Requires
- php: >=7.1
- aa/akeneo-import-commands: dev-master
- akeneo/api-php-client: ^3.0
- enqueue/amqp-ext: ^0.9
- enqueue/dsn: ^0.9.2
- php-http/guzzle6-adapter: ^1.1
- symfony/property-access: ^4.2
- symfony/serializer: ^4.2
Requires (Dev)
- aa/array-diff: dev-master
- phpspec/phpspec: ^5.1
- phpstan/phpstan: ^0.10.8
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2020-01-26 23:20:25 UTC
README
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.
How you can use it
- 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).
Installation
composer require aa/akeneo-import
Examples
Create a simple product via API
$command = new Product\Create('tshirt-red-xl'); $importer = (new ApiImporterFactory())->createByCredentials('http://akeneo', 'client_id', 'secret', 'user', 'pass'); $importer->import([$command]);
Mass import using message broker
For mass imports you can use message broker like RabbitMQ.
Publish commands:
$command = new Product\Create('tshirt-red-xl'); $queue = (new QueueFactory())->createByDsn('dsn://mq', 'messages'); $queue->enqueue($command);
Consume commands and redirect them to Akeneo API:
$queue = (new QueueFactory())->createByDsn('dsn://mq', 'messages'); $importer = (new ApiImporterFactory())->createByCredentials('http://akeneo', 'client_id', 'secret', 'user', 'pass'); $importer->importQueue([$command]);