PHPackages                             webit/dpd-client - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. webit/dpd-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

webit/dpd-client
================

DPD Client

1.0.3(5y ago)32.8k↓100%71MITPHPPHP &gt;=5.4CI failing

Since Sep 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dbojdo/dpd-client)[ Packagist](https://packagist.org/packages/webit/dpd-client)[ RSS](/packages/webit-dpd-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (7)Used By (1)

DPD SOAP API Client
===================

[](#dpd-soap-api-client)

The repository provides a client to communicate with DPD SOAP API

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

[](#installation)

Add the **webit/dpd-client** into **composer.json**

```
{
    "require": {
        "webit/dpd-client": "^1.0.0"
    }
}
```

DPDServices
-----------

[](#dpdservices)

### Creating the DPDServices Client

[](#creating-the-dpdservices-client)

```
use Webit\DPDClient\DPDServices\Client\ClientFactory;
use Webit\DPDClient\DPDServices\Common\AuthDataV1;

$authData = new AuthDataV1('login', 'password', 123);

$clientFactory = new ClientFactory();

/** @var \Webit\DPDClient\DPDServices\Client $client */
$client = $clientFactory->create($authData);

// optionally pass the test WSDL path
use Webit\DPDClient\DPDServices\Client\ClientEnvironments;
$client = $clientFactory->create($authData, ClientEnvironments::wsdl(ClientEnvironments::TEST));

// optionally pass a custom WSDL path
use Webit\DPDClient\DPDServices\Client\ClientEnvironments;
$client = $clientFactory->create($authData, 'dpdservices.wsdl');
```

### Supported Client's methods

[](#supported-clients-methods)

```
 public function findPostalCodeV1(PostalCodeV1 $postalCodeV1): FindPostalCodeResponseV1;

 public function getCourierOrderAvailability(SenderPlaceV1 $senderPlaceV1): GetCourierOrderAvailabilityResponseV1;

 public function generatePackagesNumbersV1(OpenUMLF $openUMLF, PkgNumsGenerationPolicyEnumV1 $generationPolicy): PackagesGenerationResponseV1;

 public function generateSpedLabelsV1(DPDServicesParamsV1 $DPDServicesParamsV1, OutputDocFormatDSPEnumV1 $outputDocFormatV1 = null, OutputDocPageFormatDSPEnumV1 $outputDocPageFormatV1 = null): PackagesGenerationResponseV1;

 public function generateProtocolV1(DPDServicesParamsV1 $DPDServicesParamsV1, OutputDocFormatDSPEnumV1 $outputDocFormatV1 = null, OutputDocPageFormatDSPEnumV1 $outputDocPageFormatV1 = null): PackagesGenerationResponseV1;

 public function packagesPickupCallV1(DpdPickupCallParamsV1 $pickupCallParams): PackagesPickupCallResponseV1;

 public function packagesPickupCallV2(DpdPickupCallParamsV2 $pickupCallParams): PackagesPickupCallResponseV2;

 public function packagesPickupCallV3(DpdPickupCallParamsV3 $pickupCallParams): PackagesPickupCallResponseV3;

 public function importDeliveryBusinessEvent(DPDParcelBusinessEventV1 $businessEventV1): ImportDeliveryBusinessEventResponseV1;
```

DPDInfoServices
---------------

[](#dpdinfoservices)

### Creating the DPDServices Client

[](#creating-the-dpdservices-client-1)

```
use Webit\DPDClient\DPDInfoServices\Client\ClientFactory;
use Webit\DPDClient\DPDInfoServices\Common\AuthDataV1;

$authData = new AuthDataV1('login', 'password', 123);

$clientFactory = new ClientFactory();

/** @var \Webit\DPDClient\DPDInfoServices\Client $client */
$client = $clientFactory->create($authData);

// optionally pass the test WSDL path
use Webit\DPDClient\DPDInfoServices\Client\ClientEnvironments;
$client = $clientFactory->create($authData, ClientEnvironments::wsdl(ClientEnvironments::PROD));

// optionally pass a custom WSDL path
use Webit\DPDClient\DPDInfoServices\Client\ClientEnvironments;
$client = $clientFactory->create($authData, 'dpdinfoservices.wsdl');
```

### Supported Client's methods

[](#supported-clients-methods-1)

```
 public function getEventsForCustomerV1($limit): CustomerEventsResponseV1;

 public function getEventsForCustomerV2($limit, $language): CustomerEventsResponseV1;

 public function getEventsForCustomerV3($limit): CustomerEventsResponseV2;

 public function getEventsForCustomerV4($limit, $language): CustomerEventsResponseV3;

 public function getEventsForWaybillV1($waybill, EventsSelectTypeEnum $eventSelectType, $language): CustomerEventsResponseV3;

 public function markEventsAsProcessedV1($confirmId): bool;

```

Running the tests
-----------------

[](#running-the-tests)

### Unit / Integration Tests

[](#unit--integration-tests)

```
./vendor/bin/phpunit
```

### Api Tests

[](#api-tests)

To run all the tests (Unit and API) you need to change the DPD credentials

```
cp phpunit.xml.dist phpunit.xml
vim phpunit.xml
```

```

```

```
./vendor/bin/phpunit
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Every ~415 days

Total

4

Last Release

1899d ago

### Community

Maintainers

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

---

Top Contributors

[![broiniac](https://avatars.githubusercontent.com/u/2573605?v=4)](https://github.com/broiniac "broiniac (1 commits)")[![Czarnolecki](https://avatars.githubusercontent.com/u/2145440?v=4)](https://github.com/Czarnolecki "Czarnolecki (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webit-dpd-client/health.svg)

```
[![Health](https://phpackages.com/badges/webit-dpd-client/health.svg)](https://phpackages.com/packages/webit-dpd-client)
```

###  Alternatives

[deviantintegral/har

A PHP library for working with HTTP Archives

1311.8k](/packages/deviantintegral-har)

PHPackages © 2026

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