PHPackages                             adiyya/dhl-express-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. adiyya/dhl-express-php-sdk

ActiveLibrary[API Development](/categories/api)

adiyya/dhl-express-php-sdk
==========================

DHL Express SDK

0261PHP

Since May 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/adiyya/dhl-express-php-sdk)[ Packagist](https://packagist.org/packages/adiyya/dhl-express-php-sdk)[ RSS](/packages/adiyya-dhl-express-php-sdk/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Unoffical DHL Express PHP SDK
=============================

[](#unoffical-dhl-express-php-sdk)

This *unoffical* library is wrapping some functions of the **DHL Express** JSON/REST API (called MyDHL\_API).

To get a SDK for **standard DHL** shipping, please have a look at the great SDK from [Petschko](https://github.com/Petschko/dhl-php-sdk) i've used for inspiration.

Requirements
------------

[](#requirements)

- test (and live) credentials from the DHL Express Tech Contact
- PHP-Version 5.5 or higher *(It may work on older Versions, but I don't offer Support for these)*
- [Guzzle](http://docs.guzzlephp.org/en/stable/) installed

Compatibility
-------------

[](#compatibility)

This Project is written for the MyDHL API **v1**.

Install
-------

[](#install)

You can use [Composer](https://getcomposer.org/) to install the package to your project:

`composer require adiyya/dhl-express-php-sdk`

Supported API Operations
------------------------

[](#supported-api-operations)

OperationsupportedRateRequestnoShipmentRequestyesTrackingRequestnoDocumentRetrievenoupdateShipmentnorequestPickupnoUsage
-----

[](#usage)

see [examples](/examples) for basic examples and scripts to generate test labels (see below)

Request Access to live API
--------------------------

[](#request-access-to-live-api)

To get the credentials for the live account, DHL requested test labels for some scenarios:

The test scripts can be found in the [examples](/examples) folder:

1. National shipping with saturday delivery - [test\_1.php](/examples/test_1.php)
2. National shipping time option and 2 packages - [test\_2.php](/examples/test_2.php)
3. International shipping not liable to duty - [test\_3.php](/examples/test_3.php)
4. International shipping liable to duty - [test\_4.php](/examples/test_4.php)
5. International shipping liable to duty with service DDP - [test\_5.php](/examples/test_5.php)
6. International shipping liable to duty with different payment account - [test\_6.php](/examples/test_6.php)
7. International shipping liable to duty with commercial invoice - [test\_7.php](/examples/test_7.php)
8. International shipping liable to duty with commercial invoice and frieght charges - [test\_8.php](/examples/test_8.php)

Things i've learned during testing the API
------------------------------------------

[](#things-ive-learned-during-testing-the-api)

- The "InternationalDetail" part is mandatory even if its national package
- StreetName and StreetNumber in der Address don't have any effect right now, the "StreetLines" field is always used
- Company Name in the Recipient address is the name on the package (first line)
- Package Dimensions are mandatory, but they don't have to be exact (DHL will check them anyway) - so it is possible to always use the smallest package size you have
- "StreetLine" could **not** be used for any additional name - use "StreetLines2" for this - always use it for street name and number

More details will follow soon. This package is WIP.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6dac9334c8908f0a626d065fcbe040131983612d7b54cc07905a6d46d685640?d=identicon)[adiyya](/maintainers/adiyya)

---

Top Contributors

[![adiyya](https://avatars.githubusercontent.com/u/1543521?v=4)](https://github.com/adiyya "adiyya (1 commits)")

### Embed Badge

![Health badge](/badges/adiyya-dhl-express-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/adiyya-dhl-express-php-sdk/health.svg)](https://phpackages.com/packages/adiyya-dhl-express-php-sdk)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
