Skip to content

StudioWaaz/SyliusDpdPlugin

Repository files navigation

Logo

GitHub Workflow Status

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)

    1. Install Symfony CLI command.

    2. 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
    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
    1. 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

License

This plugin's source code is completely free and released under the terms of the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published