PHPackages                             pizzo90/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. pizzo90/dhl-express-php-sdk

ActiveLibrary

pizzo90/dhl-express-php-sdk
===========================

DHL Express SDK

0.2.1(5y ago)06MITPHPPHP &gt;=5.5.0

Since Nov 14Pushed 5y agoCompare

[ Source](https://github.com/pizzo90/dhl-express-php-sdk)[ Packagist](https://packagist.org/packages/pizzo90/dhl-express-php-sdk)[ RSS](/packages/pizzo90-dhl-express-php-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (5)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 pizzo90/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)

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

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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.

###  Release Activity

Cadence

Every ~120 days

Total

4

Last Release

2007d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/65785c104e40952e4dfe941a5e09a19a426a584f921b18cff8bbb34ccebe2f0d?d=identicon)[grepdirect](/maintainers/grepdirect)

---

Top Contributors

[![alex-LE](https://avatars.githubusercontent.com/u/1616675?v=4)](https://github.com/alex-LE "alex-LE (18 commits)")[![arzzen](https://avatars.githubusercontent.com/u/6382002?v=4)](https://github.com/arzzen "arzzen (3 commits)")[![pizzo90](https://avatars.githubusercontent.com/u/6726828?v=4)](https://github.com/pizzo90 "pizzo90 (2 commits)")[![andrea-glam](https://avatars.githubusercontent.com/u/49748523?v=4)](https://github.com/andrea-glam "andrea-glam (1 commits)")

### Embed Badge

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

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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