waaz / sylius-dpd-plugin
This DPD plugin enables you to easily print shipping labels and show available pickup locations for customers to choose from.
Installs: 49
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:sylius-plugin
Requires
- php: ^8.0
- bitbag/shipping-export-plugin: ^3.0
- ekyna/dpd: ^1.3
- nyholm/psr7: ^1.8
- setono/sylius-pickup-point-plugin: ^1.1
- sylius/sylius: ^1.11
- symfony/http-client: ^5.4 || ^6.0
Requires (Dev)
- ext-json: *
- behat/behat: ^3.7
- behat/mink: ^1.9
- behat/mink-selenium2-driver: ^1.6
- dmore/behat-chrome-extension: ^1.4
- dmore/chrome-mink-driver: ^2.8
- friends-of-behat/mink: ^1.9
- friends-of-behat/mink-browserkit-driver: ^1.4
- friends-of-behat/mink-debug-extension: ^2.0
- friends-of-behat/mink-extension: ^2.4
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.1
- friends-of-behat/symfony-extension: ^2.1
- friends-of-behat/variadic-extension: ^1.3
- phpspec/phpspec: ^7.0
- phpstan/extension-installer: ^1.2
- phpstan/phpstan-doctrine: ^1
- phpstan/phpstan-strict-rules: ^1
- phpstan/phpstan-webmozart-assert: ^1
- phpunit/phpunit: ^9.5
- polishsymfonycommunity/symfony-mocker-container: ^1.0
- sylius-labs/coding-standard: ^4.0
- symfony/browser-kit: ^5.4|^6.0
- symfony/debug-bundle: ^5.4|^6.0
- symfony/dotenv: ^5.4|^6.0
- symfony/intl: ^5.4|^6.0
- symfony/runtime: ^5.4|^6.0
- symfony/web-profiler-bundle: ^5.4|^6.0
- symfony/webpack-encore-bundle: ^1.16
- vimeo/psalm: ^4|^5
Conflicts
- doctrine/orm: >= 2.16.0
This package is not auto-updated.
Last update: 2024-12-13 18:12:08 UTC
README
WaazSyliusDpdPlugin
This plugin allows you to generate shipping labels for DPD carrier.
Features
- Shipping label export (for classic, predict & relay shipping)
Installation
Prerequisite: you must first configure/install the bitbag/shipping-export-plugin
& setono/sylius-pickup-point-plugin
Install plugin with composer
composer require waaz/sylius-dpd-plugin
Add plugin dependencies to your config/bundles.php
file:
return [ ... Waaz\SyliusDpdPlugin\WaazSyliusDpdPlugin::class => ['all' => true], ];
Configuration
DPD_API_PICKUP_POINTS_KEY
should be set if you wish to use pickup point deliveries.
You can configure this plugin by creating a file config/packages/waaz_sylius_dpd_plugin
:
# Defaults values waaz_sylius_dpd: sandbox: true # Sandbox mode weight_unit: 'g' # 'g' or 'kg'. Weight unit you use in your shop
Running Tests
- PHPSpec
vendor/bin/phpspec run
- Behat (non-JS scenarios)
vendor/bin/behat --strict --tags="~@javascript"
-
Behat (JS scenarios)
-
Start Headless Chrome:
google-chrome-stable --enable-automation --disable-background-networking --no-default-browser-check --no-first-run --disable-popup-blocking --disable-default-apps --allow-insecure-localhost --disable-translate --disable-extensions --no-sandbox --enable-features=Metal --headless --remote-debugging-port=9222 --window-size=2880,1800 --proxy-server='direct://' --proxy-bypass-list='*' http://127.0.0.1
- Install SSL certificates (only once needed) and run test application's webserver on
127.0.0.1:8080
:
symfony server:ca:install APP_ENV=test symfony server:start --port=8080 --dir=tests/Application/public --daemon
- Run Behat:
vendor/bin/behat --strict --tags="@javascript"
-
Psalm
vendor/bin/psalm
-
PHPStan
vendor/bin/phpstan analyse -c phpstan.neon -l max src/
- Coding Standard
vendor/bin/ecs check src
Author
- @ehibes for Studio Waaz
License
This plugin's source code is completely free and released under the terms of the MIT license.