aa / akeneo-import
此包已被弃用,不再维护。未建议替代包。
此包的最新版本(dev-master)无可用许可证信息。
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
已弃用请考虑使用Akeneo 数据加载器
Akeneo 导入简化了数据导入到Akeneo PIM。
使用此库,您可以创建易于使用的命令来修改产品数据和相关的PIM实体,如类别。它支持通过Akeneo API的同步导入或使用消息代理(如RabbitMQ)的异步导入。
如何使用它
- 从外部系统(旧版PIM或常规数据提供者)导入。
- 批量媒体文件导入。
- 从旧版Akeneo版本导入。
- 为测试、本地开发或性能基准测试生成数据。
- 批量数据转换(例如,如果无法在Akeneo中实施大量操作,例如在Serenity版本中)。
安装
composer require aa/akeneo-import
示例
通过API创建简单产品
$command = new Product\Create('tshirt-red-xl'); $importer = (new ApiImporterFactory())->createByCredentials('http://akeneo', 'client_id', 'secret', 'user', 'pass'); $importer->import([$command]);
使用消息代理进行批量导入
对于批量导入,您可以使用消息代理,如RabbitMQ。
发布命令
$command = new Product\Create('tshirt-red-xl'); $queue = (new QueueFactory())->createByDsn('dsn://mq', 'messages'); $queue->enqueue($command);
消费命令并将它们重定向到Akeneo API
$queue = (new QueueFactory())->createByDsn('dsn://mq', 'messages'); $importer = (new ApiImporterFactory())->createByCredentials('http://akeneo', 'client_id', 'secret', 'user', 'pass'); $importer->importQueue([$command]);