PHPackages                             petschko/dhl-php-sdk - 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. petschko/dhl-php-sdk

Abandoned → [tatenmitdaten/dhl\_ship\_api](/?search=tatenmitdaten%2Fdhl_ship_api)ArchivedLibrary[API Development](/categories/api)

petschko/dhl-php-sdk
====================

DHL SDK

v0.5(7y ago)9190.0k↓25%47[5 issues](https://github.com/Petschko/dhl-php-sdk/issues)[1 PRs](https://github.com/Petschko/dhl-php-sdk/pulls)2MITPHPPHP &gt;=7.2.0

Since Feb 23Pushed 2y ago23 watchersCompare

[ Source](https://github.com/Petschko/dhl-php-sdk)[ Packagist](https://packagist.org/packages/petschko/dhl-php-sdk)[ RSS](/packages/petschko-dhl-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (2)

INACTIVE Repo
=============

[](#inactive-repo)

\*\* This REPO is out of support \*\* Please checkout other repos or request examples from DHL

In case you still have questions, you can send me an E-Mail or visit this Project on [Gitlab.com](https://gitlab.com/Petschko/dhl-php-sdk)

DHL PHP SDK
===========

[](#dhl-php-sdk)

This *unofficial* library is wrapping some functions of the DHL SOAP API in order to easy create/delete shipments and labels.

Requirements
------------

[](#requirements)

- You need a [DHL developer Account](https://entwickler.dhl.de/) and - as long as you want to use the API in production systems - a DHL Intraship Account.
- PHP-Version 5.4 or higher *(It may work on older Versions, but I don't offer Support for these)*
- PHP-SOAP-Client installed + enabled on your Server. [More information on php.net](http://php.net/manual/en/soap.setup.php)

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

[](#installation)

### Composer

[](#composer)

You can use [Composer](https://getcomposer.org/) to install the package to your project:

```
composer require petschko/dhl-php-sdk

```

The classes are then added to the autoloader automatically.

### Without Composer

[](#without-composer)

If you can't use Composer (or don't want to), you can also use this SDK without it.

To initial this SDK, just require the [\_nonComposerLoader.php](https://github.com/Petschko/dhl-php-sdk/blob/master/includes/_nonComposerLoader.php)-File from the `/includes/` directory.

```
require_once(__DIR__ . '/includes/_nonComposerLoader.php');
```

Compatibility
-------------

[](#compatibility)

This Project is written for the DHL-SOAP-API **Version 2 or higher**.

### API Version 3.0

[](#api-version-30)

This Project is **currently** not available for Version 3.0+, I plan to update it soon! Please don't send me any E-Mails about this! If you want to talk about Version 3.0, please use the Issue for it: [\#64](https://github.com/Petschko/dhl-php-sdk/issues/64)

#### Use BETA for Version 3.0

[](#use-beta-for-version-30)

You can still try out the dev-branch of this repo for Version 3:

```
composer require petschko/dhl-php-sdk:dev-dev

```

### Version 1

[](#version-1)

Version 1 Methods are marked as deprecated and will removed soon. Please upgrade to the API-Version 2 as soon as possible.

Usage / Getting started
-----------------------

[](#usage--getting-started)

- [Getting started (Just a quick guide how you have to use it)](https://github.com/Petschko/dhl-php-sdk/blob/master/examples/getting-started.md)
- *More examples soon*

Please have a look at the `examples` [Directory](https://github.com/Petschko/dhl-php-sdk/tree/master/examples). There you can find how to use this SDK also with Code-Examples, else check the *(Doxygen)* [Documentation](http://docs.petschko.org/dhl-php-sdk/index.html) for deeper knowledge.

Code Documentation
------------------

[](#code-documentation)

You find Code-Examples with explanations in the `examples` Directory. I also explain how it works.

You can find a Code-Reference here: *(Doxygen)*

Motivation
----------

[](#motivation)

I had a lot of pain studying and programming the DHL SOAP API - just to wrap some bits in a lot of XML. There is a lot, but not very helpful, documentation to the API. So I decided to create some functions in an easy to use and understand library.

There is also a lot of old stuff in the Documentation, so that you can not sure if it is right...

Credits
-------

[](#credits)

All these Persons helped to create this SDK for the DHL-API:

- [aschempp](https://github.com/aschempp) - For the help with the Notification E-Mail
- [cedricziel](https://github.com/cedricziel) - For turning this Project into a [Composer](https://getcomposer.org/)-Package
- [Dakror](https://github.com/Dakror) - For the `ProductInfo`-Class
- [octlabs](https://github.com/octlabs) - For adding some missing Documentation
- [Petschko](https://github.com/Petschko) - Initially created this Project and decided to share it for free
- [tobias-redmann](https://github.com/tobias-redmann) - For the `setFullStreet` method and the PHP-DHL-Example-Project for Version 1 *(This helped a lot to understand how the API works)*

Donate
------

[](#donate)

If you like this Project may consider to [Donate](https://www.paypal.me/petschko). I usually do this Project in my spare time and it's completely free. So I appreciate anything, which helps the Project (Pull-Requests, Bug Report etc), these are more worth than Donations but I'm happy for every amount as well. ^.^

Contact
-------

[](#contact)

- You can E-Mail me if you have Questions or whatever (No Bug-Reporting please!):
- You can Chat with me in Telegram `@petschkoo`
- You can Report Bugs here in the "[Issue](https://github.com/Petschko/dhl-php-sdk/issues)"-Section of the Project.
    - Of course you can also ask any stuff there, feel free for that!
    - If you want to use German, you can do it. Please keep in mind that not everybody can speak German, so it's better to use english =)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.7% 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 ~139 days

Total

4

Last Release

2590d ago

PHP version history (2 changes)v0.4PHP &gt;=5.4.0

v0.5PHP &gt;=7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c5a10b8ffb76d6589ef59358895c8498fdfcc81c0bf20d5383f175ade8e6920c?d=identicon)[Petschko](/maintainers/Petschko)

---

Top Contributors

[![Petschko](https://avatars.githubusercontent.com/u/673011?v=4)](https://github.com/Petschko "Petschko (215 commits)")[![cedricziel](https://avatars.githubusercontent.com/u/418970?v=4)](https://github.com/cedricziel "cedricziel (4 commits)")[![nastymadecode](https://avatars.githubusercontent.com/u/25632678?v=4)](https://github.com/nastymadecode "nastymadecode (2 commits)")[![tredmann](https://avatars.githubusercontent.com/u/2635078?v=4)](https://github.com/tredmann "tredmann (2 commits)")[![klimser](https://avatars.githubusercontent.com/u/2890543?v=4)](https://github.com/klimser "klimser (1 commits)")[![Dakror](https://avatars.githubusercontent.com/u/2452821?v=4)](https://github.com/Dakror "Dakror (1 commits)")[![dasistdaniel](https://avatars.githubusercontent.com/u/2505795?v=4)](https://github.com/dasistdaniel "dasistdaniel (1 commits)")[![aschempp](https://avatars.githubusercontent.com/u/1073273?v=4)](https://github.com/aschempp "aschempp (1 commits)")

---

Tags

apiapi-clientcomposercomposer-packagedhldhl-apidhl-api-version-2dhl-business-apidhl-frameworkdhl-phpdhl-php-sdkdhl-sdkdhl-soappersonal-projectphpphp-soap-apisoapsoap-client

### Embed Badge

![Health badge](/badges/petschko-dhl-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/petschko-dhl-php-sdk/health.svg)](https://phpackages.com/packages/petschko-dhl-php-sdk)
```

###  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)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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