mangoweb-sylius / sylius-shipment-export-plugin
v0.4.0
2020-02-11 14:46 UTC
Requires
- php: ^7.1
- ext-curl: *
- sylius/sylius: ^1.4
Requires (Dev)
- behat/behat: ^3.4
- behat/mink: ^1.7@dev
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.2
- behat/mink-selenium2-driver: ^1.3
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.0
- friends-of-behat/variadic-extension: ^1.1
- lakion/mink-debug-extension: ^1.2.3
- phpspec/phpspec: ^5.0
- phpstan/phpstan-doctrine: ^0.10
- phpstan/phpstan-shim: ^0.10
- phpstan/phpstan-symfony: ^0.10
- phpstan/phpstan-webmozart-assert: ^0.10
- phpunit/phpunit: ^6.5
- sensiolabs/security-checker: ^5.0
- sylius-labs/coding-standard: ^2.0
- symfony/browser-kit: ^3.4|^4.1
- symfony/debug-bundle: ^3.4|^4.1
- symfony/dotenv: ^4.2
- symfony/intl: ^3.4|^4.1
- symfony/web-profiler-bundle: ^3.4|^4.1
- symfony/web-server-bundle: ^3.4|^4.1
Conflicts
- symfony/browser-kit: 4.1.8
- symfony/dependency-injection: 4.1.8
- symfony/dom-crawler: 4.1.8
- symfony/routing: 4.1.8
- symfony/symfony: 4.1.8
This package is auto-updated.
Last update: 2021-10-06 08:38:38 UTC
README
货运出口插件
功能
- 查看所有准备发货的订单列表(离线支付方式或完成非离线方式的支付)
- 一次性标记更多订单为已发货
- 下载CSV文件以向Geis提交批量货运
- 下载CSV文件以向捷克邮政提交批量货运
- 您可以轻松扩展模块以支持其他货运提供商的定制CSV格式
安装
- 运行
$ composer require mangoweb-sylius/sylius-shipment-export-plugin
。 - 在您的Kernel中注册
\MangoSylius\ShipmentExportPlugin\MangoSyliusShipmentExportPlugin
。 - 在routing.yml中导入
@MangoSyliusShipmentExportPlugin/Resources/config/routing.yml
。
mango_sylius_shipment_export_plugin:
resource: "@MangoSyliusShipmentExportPlugin/Resources/config/routing.yml"
prefix: /admin
使用
您可以使用预定义的CSV类型(Geis和捷克邮政)或编写自己的导出器。
您的自定义导出器必须实现MangoSylius\ShipmentExportPlugin\Model\ShipmentExporterInterface
并定义为服务。查看我们的示例实现。
预定义的货运提供商
- 捷克邮政
MangoSylius\ShipmentExportPlugin\Model\CeskaPostaShipmentExporter:
public: true
arguments:
$currencyConverter: '@sylius.currency_converter'
tags:
- name: mango_sylius.shipment_exporter_type
type: 'ceska_posta'
label: 'Česká pošta'
- Geis
MangoSylius\ShipmentExportPlugin\Model\GeisShipmentExporter:
public: true
arguments:
$currencyConverter: '@sylius.currency_converter'
tags:
- name: mango_sylius.shipment_exporter_type
type: 'geis'
label: 'Geis'
开发
使用
- 在
/src
中开发您的插件 - 查看
bin/
以获取有用的命令
测试
在您的更改后,您必须确保测试仍在通过。
$ composer install $ bin/phpstan.sh $ bin/ecs.sh
许可证
此库受MIT许可证的约束。
致谢
由manGoweb开发。