PHPackages                             be-lenka/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. [HTTP &amp; Networking](/categories/http)
4. /
5. be-lenka/dhl-express-php-sdk

ActiveLibrary[HTTP &amp; Networking](/categories/http)

be-lenka/dhl-express-php-sdk
============================

DHL Express SDK

0625PHP

Since Feb 18Pushed 4y agoCompare

[ Source](https://github.com/be-lenka/dhl-express-php-sdk)[ Packagist](https://packagist.org/packages/be-lenka/dhl-express-php-sdk)[ RSS](/packages/be-lenka-dhl-express-php-sdk/feed)WikiDiscussions master Synced 1mo 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 be-lenka/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

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity26

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/6ac9bdd7b00d31612964e78d32fde2b346252671da0706c9ff3bc797e5e647b9?d=identicon)[arzzen](/maintainers/arzzen)

---

Top Contributors

[![arzzen](https://avatars.githubusercontent.com/u/6382002?v=4)](https://github.com/arzzen "arzzen (3 commits)")

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M317](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M292](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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