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 6d 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 27% 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://www.gravatar.com/avatar/358524142cb457b50e13c6889c1e8b63e46bf2708f039cc8a772aa9abff84749?d=identicon)[niccifor](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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