deutschepost / sdk-api-prodws
Deutsche Post DHL Group Shipping Products API SDK
Installs: 137 097
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 9
Forks: 0
Open Issues: 0
Requires (Dev)
- fig/log-test: ^1.1.0
- phpstan/phpstan: ^1.5.0
- phpunit/phpunit: ^9.5.0
- rector/rector: *
- squizlabs/php_codesniffer: ^3.4
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');