PHPackages                             antibodies-online/dhl-rest-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. antibodies-online/dhl-rest-sdk

ActiveLibrary[API Development](/categories/api)

antibodies-online/dhl-rest-sdk
==============================

PHP SDK for DHL REST API

v1.0.0(1y ago)099MITPHP

Since Nov 29Pushed 1y ago2 watchersCompare

[ Source](https://github.com/antibodies-online/dhl-rest-sdk)[ Packagist](https://packagist.org/packages/antibodies-online/dhl-rest-sdk)[ Docs](https://www.antibodies-online.com/)[ RSS](/packages/antibodies-online-dhl-rest-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

DHL API Rest
============

[](#dhl-api-rest)

[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/antibodies-online/dhl-rest-sdk/master/LICENSE)[![Packagist](https://camo.githubusercontent.com/3579a579df53da64ed2051268510a972eb6928c0a55ea9e9631a7f1f784034c7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e7469626f646965732d6f6e6c696e652f64686c2d726573742d73646b2e737667)](https://packagist.org/packages/antibodies-online/dhl-rest-sdk)[![GitHub issues](https://camo.githubusercontent.com/c9c062bde1b848a708c13a5e38f3c86125bc77efefaccd16bb80dd307c209f4d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f616e7469626f646965732d6f6e6c696e652f64686c2d726573742d73646b2e737667)](https://github.com/antibodies-online/dhl-rest-sdk/issues)

This package provides PHP classes to interact with the DHL REST API.

Each Class is generated by Jane OpenAPI Generator. The OpenAPI Specification is provided byDHL which can be found in the root folder.

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

[](#installation)

```
composer require antibodies-online/dhl-rest-sdk
```

Usage
-----

[](#usage)

You can use following client to interact with the DHL API.

```
use Antibodies\DHL\API\Rest\Client;
use Http\Discovery\Psr18ClientDiscovery;
use Psr\Http\Client\ClientInterface;

$config = new Config();
$dhlExpressUri = 'https://express.api.dhl.com/mydhlapi/test';
$psrClient = Psr18ClientDiscovery::find();

 $httpClient = new PluginClient($psrClient, [
                new BaseUriPlugin($dhlExpressUri),
                new AuthenticationPlugin(
                    new BasicAuth($config->getClientId(), $config->getClientSecret())
                ),
            ]);
        }

$client = new Client::create($httpClient);

$request = new SupermodelIoLogisticsExpressRateRequest();
// ... Fill the request object with data

 $response = $client->expApiRatesMany(
                requestBody: $request,
                queryParameters: $queryParams
            );
```

The selected client in this example is from Psr package and is used to send the request to the DHL API. The chosen endpoint is "rates/many" It's also needed to put in the right credentials in the AuthenticationPlugin.

Therefore you need an account at DHL and you need to create an API key. Visit

Generate Classes
----------------

[](#generate-classes)

### With following command you can generate the classes from the OpenAPI Specification.

[](#with-following-command-you-can-generate-the-classes-from-the-openapi-specification)

```
composer generate-files
```

Have a look in composer.json for the script and the configuration from file **.jane.**It tells jane where the origin file location is and where to put the generated files. Additionally you can set a namespace for the generated files.

Export OpenAPI Specification
----------------------------

[](#export-openapi-specification)

By adding the package "jane-php/open-api-runtime" you are able to export the OpenAPI Specification from the generated classes. We assume you use a Symfony project. Therefore you can use the following command to export the OpenAPI Specification.

```
bin/console api:openapi:export --output=dhl-api-rest.json
```

Documentations
--------------

[](#documentations)

Contributing
------------

[](#contributing)

Really appreciate bug reports. Feel free to ask for additional functionality/fields. But be aware not all feature may be implemented. A Pull Request for your Features would be amazing.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

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

Unknown

Total

1

Last Release

529d ago

### Community

Maintainers

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

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

---

Top Contributors

[![DemigodCode](https://avatars.githubusercontent.com/u/36764562?v=4)](https://github.com/DemigodCode "DemigodCode (2 commits)")[![waldifubu](https://avatars.githubusercontent.com/u/494797?v=4)](https://github.com/waldifubu "waldifubu (2 commits)")

### Embed Badge

![Health badge](/badges/antibodies-online-dhl-rest-sdk/health.svg)

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

###  Alternatives

[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[jolicode/harvest-php-api

An up to date PHP client for Harvest's API

2259.9k](/packages/jolicode-harvest-php-api)[shipstream/ups-rest-php-sdk

PHP SDK for UPS REST API

2253.7k](/packages/shipstream-ups-rest-php-sdk)[jikan/jikan-php

PHP client for jikan rest

291.1k](/packages/jikan-jikan-php)

PHPackages © 2026

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