PHPackages                             booni3/dhl-express-rest - 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. booni3/dhl-express-rest

ActiveLibrary

booni3/dhl-express-rest
=======================

DHL Express REST API

0.6.2(2y ago)34603MITPHPPHP ^7.4|^8.0

Since Jan 21Pushed 2y ago2 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (22)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/df6ff0eb00de60d2c6b87566dd4b5d2fb38283539df56b5aba0c0595766a629d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626f6f6e69332f64686c2d657870726573732d726573742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/booni3/dhl-express-rest)

Package to work with the DHL Express Rest API (v2). This package is currently in development.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require booni3/dhl-express-rest
```

Usage
-----

[](#usage)

### Domestic Shipments

[](#domestic-shipments)

```
$dto = new ShipmentCreator();
$dto->setShipperAccountNumber(954103895);
$dto->setShipper(
    (new CustomerDetails('John Smith','21 Apple Drive','Malmesbury','Wiltshire',
        'Malmesbury','SN16 4TB','GB','My Awesome Company','071111111112','a@b.com',
    ))
        ->addVat('GB1234')
        ->addEORI('GB1234')
);
$dto->setProductCode('N'); // GB
$dto->setReceiver(new Address('Helen Jones', '4 Drive', 'London', 'E14 8DW', 'GB'));
$dto->addReference('123456-custom-ref');
$dto->addPackage(new Package(12.5, 20, 10, 10, 'Jumpers', 'order-ref-1244'));

$dhl = DHL::make([
    'user' => 'DHLUSER',
    'pass' => 'dsdfsedf',
    'sandbox' => true, // false or remove for production
]);

$res = $dhl->shipments()->create($dto);
$res->trackingUrl; // tracking number
$res->trackingNumber; // url for api tracking
$res->labelData(); // decoded label data
```

### Customs Declarable Shipments

[](#customs-declarable-shipments)

Additional details needed

Note: setting the DDP account number, automatically sets the shipment up for DDP (delivery duty paid). Leave this blank/null to send DAP.

```
$dto->setCustomsDeclarable($declerable = true, $paperless = true, $ddpAccountNumber = 12345678);
$dto->setInvoice('PS-1234', now(), 'Adam Lambert');
$dto->setExportDeclaration('sale', 'GBP');
$dto->addExportLineItem(new LineItem('Red Jumper', 12.99, 1, 12456, 'GB', 12));
$dto->addExportLineItem(new LineItem('Blue Jumper', 12.99, 1, 12456, 'GB', 12));
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Adam](https://github.com/booni3)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Other Resources
---------------

[](#other-resources)

[Postman Collection](https://www.getpostman.com/collections/60a3a325988c8b0fcc17)

[Brexit Export Guide](https://dhlguide.co.uk/wp-content/uploads/2020/09/DHL_BREXIT-BREXIT_ESS_GUIDE-1.pdf)

[Supermodel Docs](https://supermodel.io/logistics/express)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~46 days

Recently: every ~180 days

Total

21

Last Release

1003d ago

PHP version history (2 changes)0.1PHP ^7.4

0.6PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f64fba4a9927986d1c9605cc039c743624ba7d3e5588bd18ddeae49e66d86e9?d=identicon)[booni3](/maintainers/booni3)

---

Top Contributors

[![booni3](https://avatars.githubusercontent.com/u/20134485?v=4)](https://github.com/booni3 "booni3 (38 commits)")

---

Tags

booni3dhl-express-rest

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/booni3-dhl-express-rest/health.svg)

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M344](/packages/tymon-jwt-auth)[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[spatie/laravel-sitemap

Create and generate sitemaps with ease

2.6k14.6M107](/packages/spatie-laravel-sitemap)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k379.4k24](/packages/team-reflex-discord-php)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)

PHPackages © 2026

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