deutschepost/sdk-api-prodws

Deutsche Post DHL Group Shipping Products API SDK

1.2.0 2024-05-02 16:03 UTC

This package is auto-updated.

Last update: 2024-11-27 12:52:54 UTC


README

The DPDHL Product Information API SDK package offers an interface to the following web services:

  • ProdWS 1.1

Requirements

System Requirements

  • PHP 8.1+ with SOAP extension

Package Requirements

  • psr/log: PSR-3 logger interfaces

Development Package Requirements

  • phpunit/phpunit: Testing framework

Installation

$ composer require deutschepost/sdk-api-prodws

Uninstallation

$ composer remove deutschepost/sdk-api-prodws

Testing

$ ./vendor/bin/phpunit -c test/phpunit.xml

Features

The DPDHL Product Information API SDK supports the following features:

  • Get Product Versions List

Get Product Versions List

Obtain the versioned lists of sales products and their components (basic products and additions).

Public API

The library's components suitable for consumption comprise

  • services:
    • service factory
    • product information service
  • data transfer objects:
    • product list

Usage

$logger = new \Psr\Log\NullLogger();
$serviceFactory = new \DeutschePost\Sdk\ProdWS\Service\ServiceFactory();
$service = $serviceFactory->createProductInformationService('user', 'password', $logger);
$productLists = $service->getProductLists('MANDANT_ID');