/dhl-php-sdk

Unofficial DHL PHP SDK based on the DHL API - Updated to API-Version 3.1

Primary LanguagePHPMIT LicenseMIT

DHL PHP SDK

This unofficial library is wrapping some functions of the DHL SOAP API in order to easy create/delete shipments and labels.

Requirements

  • You need a DHL developer Account and - as long as you want to use the API in production systems - a DHL Intraship Account.
  • PHP-Version 7.2 or higher (It may work on older Versions, but I don't offer Support for these)
  • PHP-SOAP-Client installed + enabled on your Server. More information on php.net

Installation

Composer

You can use Composer to install the package to your project:

composer require leebmann24/dhl-php-sdk

The classes are then added to the autoloader automatically.

Without Composer

If you can't use Composer (or don't want to), you can also use this SDK without it.

To initial this SDK, just require the _nonComposerLoader.php from the /includes/ directory.

require_once(__DIR__ . '/includes/_nonComposerLoader.php');

Compatibility

This Project is written for the DHL-SOAP-API Version 2 or higher.


Credits

We continue the support of https://github.com/Petschko/dhl-php-sdk which is now inactive