PHPackages                             pavolbiely/dhlmyapi - 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. pavolbiely/dhlmyapi

ActiveLibrary[API Development](/categories/api)

pavolbiely/dhlmyapi
===================

DHL myAPI

24.0k2PHP

Since Nov 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pavolbiely/dhlmyapi)[ Packagist](https://packagist.org/packages/pavolbiely/dhlmyapi)[ RSS](/packages/pavolbiely-dhlmyapi/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

DHL myAPI
=========

[](#dhl-myapi)

[![Build Status](https://camo.githubusercontent.com/28e68f6df5168480fa7edc5ad3e1b416cd40cd9444c2e26371577d843da77286/68747470733a2f2f7472617669732d63692e6f72672f7061766f6c6269656c792f64686c6d796170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pavolbiely/dhlmyapi)[![Coverage Status](https://camo.githubusercontent.com/9134847d0e668d6681134b16241b7ae072bd7bc1d576c3fd564b481119a192f8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7061766f6c6269656c792f64686c6d796170692f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/pavolbiely/dhlmyapi?branch=master)[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BHZKXCWAK2NNS)

Please ask DHL for username, password and Customer ID in order to access their API.

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

[](#installation)

Use composer to install this package.

### Example of usage

[](#example-of-usage)

Create a package and order a courier.

```
$dhl = new Dhl('user', 'pass', 1234, __DIR__ . '/temp');
$payment = new Payment('SK4123000000000002045678', 'POBNSKBA', '123456', 100.0);
$sender = NULL;
$recipient = new Address('TEST','TEST','TEST','TEST','SK');
$package = new Package(25183385203, Package::TYPE_SK_COD, Package::DEPO_HQ_BRATISLAVA, $recipient, $sender, $payment, [Package::FLAG_SAT], 'TEST');
$dhl->createPackages([$package]);
$dhl->createPickupOrders([new PickupOrder('TEST','TEST', 1, $recipient, 'info@example.org', NULL, NULL, NULL, 'TEST')])
```

Generating PDF labels

```
header('Content-Type: application/pdf');
echo PdfLabel::generateLabels($packages, PdfLabel::QUARTER);
```

How to run tests?
-----------------

[](#how-to-run-tests)

Tests are build with [Nette Tester](https://tester.nette.org/). You can run it like this:

```
php -f tester ./ -c php.ini-mac --coverage coverage.html --coverage-src ../src
```

Minimum requirements
--------------------

[](#minimum-requirements)

- PHP 7.1+

Credits
-------

[](#credits)

This code is based and inspired by [salamek/ppl-my-api](https://github.com/Salamek/PplMyApi).

License
-------

[](#license)

MIT License (c) Pavol Biely

Read the provided LICENSE file for details.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 79.3% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/115791?v=4)[Pavol Biely](/maintainers/pavolbiely)[@pavolbiely](https://github.com/pavolbiely)

---

Top Contributors

[![pavolbiely](https://avatars.githubusercontent.com/u/115791?v=4)](https://github.com/pavolbiely "pavolbiely (23 commits)")[![wamesro](https://avatars.githubusercontent.com/u/5340873?v=4)](https://github.com/wamesro "wamesro (6 commits)")

---

Tags

dhldhl-apidhl-ecommercedhl-phpdhl-soap

### Embed Badge

![Health badge](/badges/pavolbiely-dhlmyapi/health.svg)

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

###  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)
