PHPackages                             temmel/dhlpackageapi - 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. temmel/dhlpackageapi

ActiveLibrary[API Development](/categories/api)

temmel/dhlpackageapi
====================

DHL Package API client for PHP

V0.1.3(8mo ago)03proprietaryPHPPHP ^7.0 || ^8.0

Since Aug 22Pushed 8mo agoCompare

[ Source](https://github.com/ma-temmel/DHLPackageAPI)[ Packagist](https://packagist.org/packages/temmel/dhlpackageapi)[ Docs](https://github.com/ma-temmel/DHLPackageAPI)[ RSS](/packages/temmel-dhlpackageapi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

[![Contributors](https://camo.githubusercontent.com/17f1781ed78bc7f07d9a10faba7082fe9de88180f012b7dc0e148339885cd7ec/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f6d612d74656d6d656c2f44484c5061636b6167654150492e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/ma-temmel/DHLPackageAPI/graphs/contributors)[![Forks](https://camo.githubusercontent.com/d9d088c8e4cd8aeab8986e83cfcbf15cf9717c359efd578bb0dede8056f2d432/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6d612d74656d6d656c2f44484c5061636b6167654150492e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/ma-temmel/DHLPackageAPI/network/members)[![Stargazers](https://camo.githubusercontent.com/ac14c0a41e3450a1c9a8b309e4ae5d412201ee2d85b3981b8d52ba0d54419bc2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6d612d74656d6d656c2f44484c5061636b6167654150492e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/ma-temmel/DHLPackageAPI/stargazers)[![Issues](https://camo.githubusercontent.com/a5ac6f8c1ba12fd28679d3a9df0fd997b54d756edfdb4c55d864f8e101ea0255/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6d612d74656d6d656c2f44484c5061636b6167654150492e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/ma-temmel/DHLPackageAPI/issues)[![project_license](https://camo.githubusercontent.com/62b870eca7a57fd1f6ff6a85e43cda8da970c81bfb70b0bd99f651a0062c68cf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d612d74656d6d656c2f44484c5061636b6167654150492e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/ma-temmel/DHLPackageAPI/blob/master/LICENSE.MD)

### DHL Package API

[](#dhl-package-api)

 This is a Composer package to handle the [DHL Post &amp; Parcel Germany, Parcel API](https://developer.dhl.com/api-reference/parcel-de-shipping-post-parcel-germany-v2) and [the DHL Shipment Tracking - Unified API](https://developer.dhl.com/api-reference/shipment-tracking)
 [**Explore the docs »**](https://github.com/ma-temmel/DHLPackageAPI/)
 [Report Bug](https://github.com/ma-temmel/DHLPackageAPI//issues/new?labels=bug&template=bug-report---.md) · [Request Feature](https://github.com/ma-temmel/DHLPackageAPI//issues/new?labels=enhancement&template=feature-request---.md)

 Table of Contents1. [About The Project](#about-the-project)
2. [Getting Started](#getting-started)
    - [Installation &amp; Usage](#installation)
3. [License](#license)
4. [Acknowledgments](#acknowledgments)

About The Project
-----------------

[](#about-the-project)

This is a Composer Package to handle most of the tasks on the DHL API to send packages and track its whereabouts. Initially only created for our own needs, but why not release it. I could not find anything like this. so here you have it... use it like you want.

I used [ mvdnbrk/dhlparcel-php-api ](https://github.com/mvdnbrk/dhlparcel-php-api) as my basis and changed some stuff and build my own version.

This Package uses and older version of "collection" to ensure backwards-compatibility. Maybe some time in the future I will upgrade it. We will see.

([back to top](#readme-top))

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

[](#getting-started)

It's a composer package.. what else to say?

### Installation &amp; Usage

[](#installation--usage)

1. Get a API Key at
2. Install per composer

    ```
    composer require mvdnbrk/dhlparcel-php-api
    ```
3. Enter your API, create a package and send it to DHL

    ```
     require __DIR__ . '/vendor/autoload.php';
     use Temmel\DHLPackageAPI\Client;
     $dhlparcel = new Client($debug = false);

     $dhlparcel->setUserName('USER-NAME');
     $dhlparcel->setUserPassword('USER-PASSWORD');
     $dhlparcel->setClientID('CLIENT-ID');
     $dhlparcel->setClientSecret('CLIENT-SECRET');

    	$package_data = [
             'profile' => 'STANDARD_GRUPPENPROFIL',
     		'product'       => '',
     		'refNo'         => '',
     		'billingNumber' => 'YOUR-BILLING-NUMGER',
     		'sender'        => [
     				'shipperRef' => 'YOUR-OWN-SHIPPERREF-IF-EXISTS',
     		],
     		'recipient'     => [
     				'name1'         => 'NAME',
     				'contactName'   => 'CONTACTNAME',
     				'addressStreet' => 'STREET (AND NUMBER)',
     				'addressHouse'  => 'NUMBER IF NOT IN STREET',
     				'number_suffix' => '',
     				'postalCode'    => 'POSTALCODE',
     				'city'          => 'CITY',
     				'country'       => 'COUNTRY (3 LETTERS)',
     				'email'         => 'E-MAIL',
     		],
              'sender' => [
     				'name1' => 'NAME',
     				'addressStreet' => 'STREET (AND NUMBER)',
                     'addressHouse'  => 'NUMBER IF NOT IN STREET',
     				'additional_address_line' => '',
     				'postalCode' => 'POSTALCODE',
     				'city' => 'CITY',
     				'country' => 'COUNTRY (3 LETTERS)',
     				'email' => 'E-MAIL'
             ]

     ];

     $package = new Package($package_data);

    // THIS OPTIONS ARE ALREADY THE STANDARD, CHANGE IF NEEDED
     $package->options->details = [
     		'dim'    => [
     				'uom'    => 'mm',
     				'height' => '100',
     				'width'  => '150',
     				'length' => '200',
     		],
     		'weight' => [
     				'uom'   => 'g',
     				'value' => 500,
     		],
     ];

    $shipment = $dhlparcel->shipments->create($package);

    // LOOK UP WHAT YOU NEED ;)
    dump($shipment);
    ```
4. Manifest

    ```
    $manifests = $dhlparcel->shipments->manifest(['profile' => 'STANDARD_GRUPPENPROFIL', 'billingNumber' => 'YOUR-BILLING-NUMER', 'shipmentNumbers' => [$shipment->shipmentNo]]);
    ```
5. Tracking (This will not work directly after creating the shipping, you must manifest the shipping (or wait till the next day) and then wait another half an hour.)

    ```
    $tracking = $dhlparcel->tracking->get($shipment->shipmentNo);
    ```

([back to top](#readme-top))

License
-------

[](#license)

Distributed under the project\_license. See `LICENSE.MD` for more information.

([back to top](#readme-top))

Acknowledgments
---------------

[](#acknowledgments)

- [ mvdnbrk/dhlparcel-php-api ](https://github.com/mvdnbrk/dhlparcel-php-api)

([back to top](#readme-top))

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance58

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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 ~0 days

Total

4

Last Release

267d ago

PHP version history (2 changes)v0.1PHP ^7.2 || ^8.0

v0.1.2PHP ^7.0 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff91fde9311ae9c412b580420d895a330cc6c002c32d04f842869e116898fc0a?d=identicon)[ma-temmel](/maintainers/ma-temmel)

---

Top Contributors

[![ma-temmel](https://avatars.githubusercontent.com/u/169253931?v=4)](https://github.com/ma-temmel "ma-temmel (12 commits)")

---

Tags

apipackageparceldhl

### Embed Badge

![Health badge](/badges/temmel-dhlpackageapi/health.svg)

```
[![Health](https://phpackages.com/badges/temmel-dhlpackageapi/health.svg)](https://phpackages.com/packages/temmel-dhlpackageapi)
```

###  Alternatives

[mvdnbrk/dhlparcel-php-api

DHL Parcel API client for PHP

3957.9k5](/packages/mvdnbrk-dhlparcel-php-api)[jouwweb/sendcloud

Provides a client to interact with the Sendcloud API in an object-oriented way.

16256.9k1](/packages/jouwweb-sendcloud)[mvdnbrk/laravel-dhlparcel

DHL Parcel API client for Laravel

1717.3k](/packages/mvdnbrk-laravel-dhlparcel)

PHPackages © 2026

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