PHPackages                             bernhardk/laravel-dpd - 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. bernhardk/laravel-dpd

ActiveLibrary[API Development](/categories/api)

bernhardk/laravel-dpd
=====================

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

v1.8.1(1y ago)143.3k↓50%13MITPHPPHP &gt;=8.0.2 || ^8.2

Since Dec 5Pushed 1y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (1)Versions (15)Used By (0)

DPD Webservices for Laravel
===========================

[](#dpd-webservices-for-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/2f78824fee4dc88b527f919cd7851150207e0044ca7866de5e42252b65550e8e/68747470733a2f2f706f7365722e707567782e6f72672f6265726e686172646b2f6c61726176656c2d6470642f762f737461626c65)](https://packagist.org/packages/bernhardk/laravel-dpd)[![GitHub issues](https://camo.githubusercontent.com/65d59f542e2f5a2d26caf76b9352b5a522d518282bcd15766a2ccee139648e7e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4265726e686172644b39312f6c61726176656c2d6470642e737667)](https://github.com/BernhardK91/laravel-dpd/issues)[![GitHub license](https://camo.githubusercontent.com/0560a5ad75e19e49b34f5b37293b0405f16b97d50eb76a86e983b903943608d3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4265726e686172644b39312f6c61726176656c2d6470642e737667)](https://github.com/BernhardK91/laravel-dpd/blob/master/LICENSE.txt)[![Packagist](https://camo.githubusercontent.com/f472049ecf18421dbded51218ca20eff0497b6afb22152a5c5cfc61caef65785/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6265726e686172646b2f6c61726176656c2d6470642e737667)](https://packagist.org/packages/bernhardk/laravel-dpd)[![Twitter](https://camo.githubusercontent.com/a7e59cfb7fd99610c5ed9b48975033dfd8fef2cf393abc6ce214c980745b39eb/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f68747470732f6769746875622e636f6d2f4265726e686172644b39312f6c61726176656c2d6470642e7376673f7374796c653d736f6369616c)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2FBernhardK91%2Flaravel-dpd)

This is a laravel package for the *DPD Webservices* based on Michiel Meertens' "DPD Webservice" ().

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

[](#installation)

You can install the package via composer with the following command into an existing laravel project. Please note the requirements below.

```
$ composer require bernhardk/laravel-dpd
```

After that you need to publish the config-file with the following command:

```
$ php artisan vendor:publish --provider="BernhardK\Dpd\DpdServiceProvider" --tag="config"
```

As soon you have configured the credentials in /config/dpd.php you are ready to use the package as described below.

Features
--------

[](#features)

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

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

[](#requirements)

- PHP SOAP extension needs to be installed ()
- Edit configuration parameters in /config/dpd.php. All parameters are described.

DPD Webservice versions
-----------------------

[](#dpd-webservice-versions)

WebserviceVersionLogin Service2.0Shipment Service4.4Parcel Life Cycle Service2.0Basic shipment usage
--------------------

[](#basic-shipment-usage)

The package registers a class that can be directly used:

```
app()->dpdShipment
```

The following code describes a sample usage and returns a PDF file.

```
// Enable DPD B2C delivery method
app()->dpdShipment->setPredict([
    'channel' => 'email',
    'value' => 'someone@mail.com',
    'language' => 'EN'
]);
// ATTENTION: Cause of privacy reasons transmitting clients email address is only allowed if client agreed.

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

// Set the sender's address
app()->dpdShipment->setSender([
    'name1' => 'Your Company',
    'street' => 'Street 12',
    'country' => 'NL',
    'zipCode' => '1234AB',
    'city' => 'Amsterdam',
    'email' => 'contact@yourcompany.com',
    'phone' => '1234567645'
]);

// Set the receiver's address
app()->dpdShipment->setReceiver([
    'name1' => 'Joh Doe',
    'name2' => null,
    'street' => 'Street',
    'houseNo' => '12',
    'zipCode' => '1234AB',
    'city' => 'Amsterdam',
    'country' => 'NL',
    'contact' => null,
    'phone' => null,
    'email' => null,
    'comment' => null
]);

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

app()->dpdShipment->addParcel([
    'weight' => 5000,
    'height' => 0, // In centimeters
    'width' => 0,
    'length' => 0 // All parameters need to be given. Enter 0 if you have no value
]);

// Submit the shipment
app()->dpdShipment->submit();

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

// Show the pdf label
header('Content-Type: application/pdf');
echo app()->dpdShipment->getLabels();
```

Basic tracking usage
--------------------

[](#basic-tracking-usage)

The package registers a class that can be directly used:

```
app()->dpdTracking
```

The following code describes a sample usage and returns the Tracking-Status.

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

Support
-------

[](#support)

If you have any questions or problems please open a new issue.

License
-------

[](#license)

This package is licensed under the MIT license. The package is based on Michiel Meertens' "DPD Webservice" (), which is also licensed under the MIT license.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance44

Moderate activity, may be stable

Popularity32

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 62.5% 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 ~175 days

Recently: every ~312 days

Total

14

Last Release

443d ago

PHP version history (3 changes)v1.0.3PHP &gt;=7.1

v1.6.0PHP &gt;=8.0.2

v1.8.1PHP &gt;=8.0.2 || ^8.2

### Community

Maintainers

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

---

Top Contributors

[![BernhardK91](https://avatars.githubusercontent.com/u/5526334?v=4)](https://github.com/BernhardK91 "BernhardK91 (15 commits)")[![chellmann](https://avatars.githubusercontent.com/u/2974884?v=4)](https://github.com/chellmann "chellmann (5 commits)")[![Lexiv](https://avatars.githubusercontent.com/u/3238692?v=4)](https://github.com/Lexiv "Lexiv (2 commits)")[![sneumannws](https://avatars.githubusercontent.com/u/137796422?v=4)](https://github.com/sneumannws "sneumannws (1 commits)")[![stmunker](https://avatars.githubusercontent.com/u/122808271?v=4)](https://github.com/stmunker "stmunker (1 commits)")

---

Tags

laravelwebservicesdpddpd cloud service

### Embed Badge

![Health badge](/badges/bernhardk-laravel-dpd/health.svg)

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

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[api-ecosystem-for-laravel/dingo-api

A RESTful API package for the Laravel and Lumen frameworks.

3121.5M10](/packages/api-ecosystem-for-laravel-dingo-api)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[kirschbaum-development/laravel-openapi-validator

Automatic OpenAPI validation for Laravel HTTP tests

581.1M5](/packages/kirschbaum-development-laravel-openapi-validator)

PHPackages © 2026

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