PHPackages                             shipcore-nl/dhlparcel-api-php - 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. shipcore-nl/dhlparcel-api-php

ActiveLibrary[API Development](/categories/api)

shipcore-nl/dhlparcel-api-php
=============================

DHL Parcel REST API PHP Bindings

55574[3 issues](https://github.com/shipcore-nl/dhlparcel-api-php/issues)PHP

Since Oct 24Pushed 7y ago2 watchersCompare

[ Source](https://github.com/shipcore-nl/dhlparcel-api-php)[ Packagist](https://packagist.org/packages/shipcore-nl/dhlparcel-api-php)[ RSS](/packages/shipcore-nl-dhlparcel-api-php/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

DHL Parcel API PHP Bindings
===========================

[](#dhl-parcel-api-php-bindings)

PHP Library to use DHL Parcel API as documented on .

Install instructions
--------------------

[](#install-instructions)

```
composer require shipcore-nl/dhlparcel-api-php

```

Example
-------

[](#example)

### Create Shipment Label

[](#create-shipment-label)

```
$userId = 'YOUR_USER_ID'
$key = 'YOUR_KEY';
$sandbox = true;

$dhl = new \ShipCore\DHLParcel\Api($userId, $key, null, $sandbox);

$labelSpecification = \ShipCore\DHLParcel\Entity\Request\LabelSpecification::fromDataArray([
    'labelId' => ShipCore\DHLParcel\Util\UUID::generateUUID(),
    'orderReference' => 'myReference',
    'parcelTypeKey' => 'SMALL',
    'receiver' => [
        'name'  => [
            'firstName' => 'John',
            'lastName' => 'Doe',
            'companyName' => 'ACME Corp.',
            'additionalName' => 'Benelux'
        ],
        'address' => [
            'countryCode' => 'NL',
            'postalCode' => '3542AD',
            'city' => 'Utrecht',
            'street' => 'Reactorweg',
            'number' => '25',
            'isBusiness' => true,
            'addition' => 'A'
        ],
        'email' => 'mrparcel@dhlparcel.nl',
        'phoneNumber' => '0031612345678'
    ],
    'shipper' => [
        'name'  => [
            'firstName' => 'John',
            'lastName' => 'Doe',
            'companyName' => 'ACME Corp.',
            'additionalName' => 'Benelux'
        ],
        'address' => [
            'countryCode' => 'NL',
            'postalCode' => '3542AD',
            'city' => 'Utrecht',
            'street' => 'Reactorweg',
            'number' => '25',
            'isBusiness' => true,
            'addition' => 'A'
        ],
        'email' => 'mrparcel@dhlparcel.nl',
        'phoneNumber' => '0031612345678'
    ],
    'accountId' => '01234567',
    'options' => [
        [
        'key' => 'DOOR'
        ]
     ],
    'returnLabel' => false,
    'pieceNumber' => 1,
    'quantity' => 1,
    'automaticPrintDialog' => true
]);

$response = $dhl->createLabel($labelSpecification);
print_r($response);

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance8

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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://avatars.githubusercontent.com/u/1662293?v=4)[niccifor](/maintainers/niccifor)[@niccifor](https://github.com/niccifor)

---

Top Contributors

[![annevandervelden](https://avatars.githubusercontent.com/u/9163281?v=4)](https://github.com/annevandervelden "annevandervelden (9 commits)")[![niccifor](https://avatars.githubusercontent.com/u/1662293?v=4)](https://github.com/niccifor "niccifor (8 commits)")[![extroniks](https://avatars.githubusercontent.com/u/16757761?v=4)](https://github.com/extroniks "extroniks (6 commits)")[![xewl](https://avatars.githubusercontent.com/u/245041?v=4)](https://github.com/xewl "xewl (1 commits)")

---

Tags

apidhldhl-parcelphpphp-library

### Embed Badge

![Health badge](/badges/shipcore-nl-dhlparcel-api-php/health.svg)

```
[![Health](https://phpackages.com/badges/shipcore-nl-dhlparcel-api-php/health.svg)](https://phpackages.com/packages/shipcore-nl-dhlparcel-api-php)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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