PHPackages                             kruegge82/dpd-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. kruegge82/dpd-php-sdk

ActiveLibrary[API Development](/categories/api)

kruegge82/dpd-php-sdk
=====================

Library to interface with the DPD web services germany

v0.0.7(1y ago)0151MITPHPPHP &gt;= 5.4

Since Aug 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kruegge82/dpd-php-sdk)[ Packagist](https://packagist.org/packages/kruegge82/dpd-php-sdk)[ RSS](/packages/kruegge82-dpd-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (7)Used By (0)

DPD Webservice
==============

[](#dpd-webservice)

Installation:

```
$ composer require kruegge82/dpd-php-sdk
```

Features:

- Submit a shipment to the dpd webservice and retrieve it's label and tracking information
- Retrieve parcel status information

Basic shipment usage:

```
use kruegge82\DPDAuthorisation;
use kruegge82\DPDShipment;

try{
    // Second parameter to disable the wsdl cache defaults to true
    $authorisation = new DPDAuthorisation([
        'staging' => true,
        'delisId' => '...',
        'password' => '...',
        'messageLanguage' => 'de_DE', // en_EN
        'customerNumber' => '...'
    ]);

    // Second parameter to disable the wsdl cache defaults to true
    // $authorisation = new DPDAuthorisation($dpd, false);

    // Init the shipment with authorisation
    $shipment = new DPDShipment($authorisation);

    // Set the language for the track&trace link
    $shipment->setTrackingLanguage('de_DE');

    // Enable saturday delivery
    $shipment->setSaturdayDelivery(true);

    // Enable DPD B2C delivery method
    $shipment->setPredict([
        'channel' => 'email',
        'value' => 'someone@mail.com',
        'language' => 'EN'
    ]);

    // Set the general shipmentdata
    $shipment->setGeneralShipmentData([
        'product' => 'CL',
        'mpsCustomerReferenceNumber1' => 'Test shipment'
    ]);

    // Set the printer options
    $shipment->setPrintOptions([
        'printerLanguage' => 'PDF',
        'paperFormat' => 'A6',
    ]);

    // Set the sender's address
    $shipment->setSender([
        'name1' => 'Your Company',
        'street' => 'Street 12',
        'country' => 'DE',
        'zipCode' => '12345',
        'city' => 'BERLIN',
        'email' => 'contact@yourcompany.com',
        'phone' => '1234567645'
    ]);

    // Set the receiver's address
    $shipment->setReceiver([
        'name1' => 'Joh Doe',
        'name2' => null,
        'street' => 'Street',
        'houseNo' => '12',
        'zipCode' => '98765',
        'city' => 'München',
        'country' => 'DE',
        'contact' => null,
        'phone' => null,
        'email' => null,
        'comment' => null
    ]);

    // Add as many parcels as you want
    $shipment->addParcel([
        'weight' => 3000, // In gram
        'height' => 10, // In centimeters
        'width' => 10,
        'length' => 10
    ]);

    $shipment->addParcel([
        'weight' => 5000, // In gram
        'height' => 20, // In centimeters
        'width' => 30,
        'length' => 20
    ]);

    // Submit the shipment
    $shipment->submit();

    // Get the trackingdata
    $trackinglinks = $shipment->getParcelResponses();

    // Show the pdf label
    header('Content-Type: application/pdf');
    echo $shipment->getLabels();

}catch(Exception $e){
    echo $e->getMessage();
}
```

Basic parcel status usage:

```
use kruegge82\DPDAuthorisation;
use kruegge82\DPDParcelStatus;

try{

    // Authorize
    // Be aware that this functionality doesn't work with test credentials
    $authorisation = new DPDAuthorisation([
        'staging' => false,
        'delisId' => '',
        'password' => '',
        'messageLanguage' => 'de_DE',  // en_EN
        'customerNumber' => ''
    ]);

    // Init
    $status = new DPDParcelStatus($authorisation);

    // Retrieve the parcel's status by it's awb number
    $parcelStatus = $status->getStatus('12345678987654');

    echo '';
    print_r($parcelStatus);
    echo '';

}catch(Exception $e){
    echo $e->getMessage();
}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance45

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~24 days

Recently: every ~30 days

Total

6

Last Release

509d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/34c88e5bc8a2df40bb4ce36ffa6542d916db0741a1b8cb00cef2a890a044b0f9?d=identicon)[kruegge82](/maintainers/kruegge82)

---

Top Contributors

[![kruegge82](https://avatars.githubusercontent.com/u/6518148?v=4)](https://github.com/kruegge82 "kruegge82 (10 commits)")

---

Tags

dpddpd webservicedpd apidpd soap

### Embed Badge

![Health badge](/badges/kruegge82-dpd-php-sdk/health.svg)

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

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

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

GitHub API v3 client

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

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[google/common-protos

Google API Common Protos for PHP

173103.7M49](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[bernhardk/laravel-dpd

Laravel package for using DPD Webservices to submit shipment to dpd und retrieve its label and tracking information.

143.3k](/packages/bernhardk-laravel-dpd)

PHPackages © 2026

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