PHPackages                             dhl-plugins/dhl-api-wrapper - 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. dhl-plugins/dhl-api-wrapper

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

dhl-plugins/dhl-api-wrapper
===========================

Dhl Api Wrapper

v0.1.7(6y ago)925.1k6[3 issues](https://github.com/dhlparcel/dhl-api-wrapper/issues)[1 PRs](https://github.com/dhlparcel/dhl-api-wrapper/pulls)MITPHPPHP &gt;=5.6

Since May 1Pushed 6mo ago39 watchersCompare

[ Source](https://github.com/dhlparcel/dhl-api-wrapper)[ Packagist](https://packagist.org/packages/dhl-plugins/dhl-api-wrapper)[ Docs](https://www.dhlparcel.nl)[ RSS](/packages/dhl-plugins-dhl-api-wrapper/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (8)Dependencies (7)Versions (12)Used By (0)

Dhl-api-wrapper (Deprecated, please read our warning)
=====================================================

[](#dhl-api-wrapper-deprecated-please-read-our-warning)

### WARNING

[](#warning)

Provided as-is, but deprecated and no longer supported.

### Installing via Composer

[](#installing-via-composer)

The recommended way to install the wrapper is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest stable version of the wrapper:

```
php composer.phar require dhl-plugins/dhl-api-wrapper
```

After installing, you need to require Composer's autoloader:

```
require __DIR__ . '/vendor/autoload.php';
```

### Frequently asked questions

[](#frequently-asked-questions)

See [FAQ.md](FAQ.md).

Getting Started
---------------

[](#getting-started)

First you will need to initialise the client like this:

```
$client = new \Dhl\ApiClient([
    'apiUser' => $apiUser,
    'apiKey' => $apiKey,
    'accountId' => $accountId,
    'organisationId' => $organisationId,
]);
```

Then you can begin making requests like shown below. Please note that the list of requests below is not complete.

More complete examples are located in the [examples directory](examples/)

### Create Shipping Label

[](#create-shipping-label)

check the [create label example](examples/createLabel.php) for the `$parameters` variable.

```
// Create a DHL shipping label
$label = $client->createLabel($parameters);
$rawPdf = $labelResult->offsetGet('pdf');
if (!file_put_contents('DHLshippingLabel.pdf', base64_decode($rawPdf))) {
    printf('could not write label.%s', PHP_EOL);
} else {
    printf('Shipping label writen.%s', PHP_EOL);
}
```

### Retrieve Capabilities

[](#retrieve-capabilities)

```
// Retrieve the capabilities for your account and shipment information.
// The result can be used as `options` in the createLabel call.
$result = $client->capabilities([
    'fromCountry' => 'NL',
    'fromPostalCode' => '3542 AD',
    'toCountry' => 'NL',
    'toPostalCode' => '3542 AB',
]);
printf('%s', print_r($result, true));
```

### Destination Countries

[](#destination-countries)

```
// Get a list of all destination Countries.
$result = $client->destinationCountries(['senderType' => 'business', 'fromCountry' => 'NL']);
printf('%s', print_r($result, true));
```

Endpoints which are available, take a look in the [./src/Dhl/resources](src/Dhl/resources) directory for reference.

### Bugs &amp; Issues

[](#bugs--issues)

We no longer maintain this wrapper.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.1% 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 ~65 days

Recently: every ~59 days

Total

8

Last Release

2477d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/89373c8170e2aac65dd39d0991eb8bc4593ab7238cbe6102a1cdbbb3631707a2?d=identicon)[Dhlparcel](/maintainers/Dhlparcel)

---

Top Contributors

[![roerlemans](https://avatars.githubusercontent.com/u/14876955?v=4)](https://github.com/roerlemans "roerlemans (19 commits)")[![Rud5G](https://avatars.githubusercontent.com/u/27158?v=4)](https://github.com/Rud5G "Rud5G (5 commits)")[![Dunduro](https://avatars.githubusercontent.com/u/5494765?v=4)](https://github.com/Dunduro "Dunduro (2 commits)")

---

Tags

composerdhldhl-apidhl-api-wrapperdhl-ecommerceguzzleguzzle-middlewareguzzle-servicesphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dhl-plugins-dhl-api-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/dhl-plugins-dhl-api-wrapper/health.svg)](https://phpackages.com/packages/dhl-plugins-dhl-api-wrapper)
```

###  Alternatives

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)[meteocontrol/vcom-api-client

HTTP Client for meteocontrol's VCOM API - The VCOM API enables you to directly access your data on the meteocontrol platform.

175.7k1](/packages/meteocontrol-vcom-api-client)

PHPackages © 2026

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