Download the PHP package dhl/sdk-api-bcs without Composer
On this page you can find all versions of the php package dhl/sdk-api-bcs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package sdk-api-bcs
DHL BCS API SDK
The DHL Business Customer Shipping API SDK package offers an interface to the following web services:
Requirements
System Requirements
- PHP 7.2+ with SOAP and JSON extension
Package Requirements
league/openapi-psr7-validator
: Schema validator for JSON request messagesnetresearch/jsonmapper
: Mapper for deserialization of JSON response messages into PHP objectsphp-http/discovery
: Discovery service for HTTP client and message factory implementationsphp-http/httplug
: Pluggable HTTP client abstractionphp-http/logger-plugin
: HTTP client logger plugin for HTTPlugpsr/http-client
: PSR-18 HTTP client interfacespsr/http-factory
: PSR-7 HTTP message factory interfacespsr/http-message
: PSR-7 HTTP message interfacespsr/log
: PSR-3 logger interfaces
Virtual Package Requirements
psr/http-client-implementation
: Any package that provides a PSR-18 compatible HTTP clientpsr/http-factory-implementation
: Any package that provides PSR-7 compatible HTTP message factoriespsr/http-message-implementation
: Any package that provides PSR-7 HTTP messages
Development Package Requirements
nyholm/psr7
: PSR-7 HTTP message factory & message implementationphpunit/phpunit
: Testing frameworkphp-http/mock-client
: HTTPlug mock client implementationphpstan/phpstan
: Static analysis toolsquizlabs/php_codesniffer
: Static analysis tool
Installation
Uninstallation
Testing
Features
The DHL BCS API SDK is able to connect to the legacy Business Customer Shipping SOAP API as well as its successor, the Parcel DE Shipping REST web service.
While the connection to the REST API includes some shipping services that were introduced after BCS v3.1.2, both connections share the same high-level functionality:
- Validate Shipment: Validate a shipment order without booking a label
- Create Shipment Order: Book a shipment label
- Delete Shipment Order: Cancel a shipment label
Please note that the Parcel DE Shipping REST API takes different arguments in some cases:
- sandbox credentials and EKP
- countries must be specified as three-letter codes
Authentication
Both APIs require a two-level authentication to identify application and user. The API SDK offers an authentication storage to pass credentials in.
- API user credentials (user and signature/password) are created in the DHL Business Customer Portal
- SOAP access: application ID and token are created in the Developer Portal
- REST access: API key is created in the API Developer Portal
API Selection
By default, the SDK connects to the legacy Business Customer Shipping SOAP API. In order to switch to the REST web service, pass an additional argument to the service factory:
When using the request builder to create outgoing messages, then pass the respective argument there as well:
More thorough examples on using service factory and request builder can be found in the section about web service operations.
Web Service Operations
Validate Shipment
Validate shipments for DHL Paket including the relevant shipping documents.
Public API
The library's components suitable for consumption comprise
- services:
- service factory
- shipment service
- data transfer object builder
- data transfer objects:
- authentication storage
- order/label settings
- validation result with status message
Usage
Create Shipment Order
Create shipments for DHL Paket including the relevant shipping documents. In addition to the primary shipment data (shipper, consignee, etc.), further settings can be defined per request via the order configuration object, including label printing size, profile, and more.
Public API
The library's components suitable for consumption comprise
- services:
- service factory
- shipment service
- data transfer object builder
- data transfer objects:
- authentication storage
- order/label settings
- shipment with shipment/tracking number and label(s)
Usage
Delete Shipment Order
Cancel earlier created shipments.
Public API
The library's components suitable for consumption comprise
- services:
- service factory
- shipment service
- data transfer objects:
- authentication storage
Usage
All versions of sdk-api-bcs with dependencies
ext-json Version *
ext-soap Version *
league/openapi-psr7-validator Version ^0.21.0
netresearch/jsonmapper Version ^4.0.0
php-http/discovery Version ^1.10.0
php-http/httplug Version ^2.2.0
php-http/logger-plugin Version ^1.2.1
psr/http-client Version ^1.0.1
psr/http-client-implementation Version ^1.0.0
psr/http-factory Version ^1.0.0
psr/http-factory-implementation Version ^1.0.0
psr/http-message Version ^1.0.0
psr/http-message-implementation Version ^1.0.0
psr/log Version ^1.1