PHPackages                             solunsky/dpd-interconnector - 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. solunsky/dpd-interconnector

ActiveLibrary[API Development](/categories/api)

solunsky/dpd-interconnector
===========================

Interconnector is a REST-based Web-Service to integrate information systems of DPD customers, which through POST requests allows using DPD services provided. Interconnector allows to use DPD services by transmitting shipment information, requesting package pickups, printing parcel labels, etc.

v1.0.0(5y ago)11.0k↓50%MITPHPPHP &gt;=5.5.0

Since Oct 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Solunsky/dpd-interconnector)[ Packagist](https://packagist.org/packages/solunsky/dpd-interconnector)[ Docs](https://github.com/solunsky/dpd)[ RSS](/packages/solunsky-dpd-interconnector/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Interconnector - DPD API
========================

[](#interconnector---dpd-api)

Interconnector is a REST-based Web-Service to integrate information systems of DPD customers, which through POST requests allows using DPD services provided. Interconnector allows to use DPD services by transmitting shipment information, requesting package pickups, printing parcel labels, etc.

Documentation
-------------

[](#documentation)

[**Interconnector (EN) V2.6 | From DPD LV (DPD shipment creation and tracking web services)**](https://www.dpd.com/lv/en/sending-parcels/e-commerce/for-developers/)

[**Interconnector (EN) V2.4 | From DPD EE**](https://www.dpd.com/ee/wp-content/uploads/sites/235/2020/04/Interconnector_dokumentatsioon-1.pdf)

Installiation
-------------

[](#installiation)

#### Require

[](#require)

- PHP &gt;=5.5

Work at PHP ^7.\*

```
composer require solunsky/dpd-interconnector

```

Full example
------------

[](#full-example)

```
use Solunsky\Interconnector\Authentication;
use Solunsky\Interconnector\Request\CreateShipment;
use Solunsky\Interconnector\Request\PrintLabel;
use Solunsky\Interconnector\Client;

$auth = new Authentication('username', 'password', 'lv');
$shipmentRequest = new CreateShipment($auth, $params);
$client = new Client(array('verify' => false));

// Response
$shipmentResponse = $client->get($shipmentRequest);
// Output json

// Response Label
$printRequest = new PrintLabel($auth, $shipmentResponse['pl_number']);
$printResponse = $client->get($printRequest, false);
// Output string

header("Content-type:application/pdf");
echo $print;

```

Authentication (Step 1)
-----------------------

[](#authentication-step-1)

##### Params:

[](#params)

```
string|array $countryCode: 'lv' or 'ee' or 'lt' or array("uk" => "https://integration.dpd.uk/ws-mapper-rest/")
boolean $debug: default false

```

##### Example:

[](#example)

```
use Solunsky\Interconnector\Authentication;

$auth = new Authentication('username', 'password', $countryCode);

```

Methods (Step 2)
----------------

[](#methods-step-2)

### Shipment creation

[](#shipment-creation)

This method creates shipment that can contain one or multiple parcels. The data that is needed for creating shipments will depend on DPD service that is requested.

##### Params:

[](#params-1)

Read the documentation

```
array $params

```

##### Example:

[](#example-1)

```
use Solunsky\Interconnector\Request\CreateShipment;

$response = new CreateShipment($auth, $params);

```

### Parcel label creation

[](#parcel-label-creation)

This method generates a parcel label. There’s a possibility to configure automatic data submission by DPD triggered by parcel printing.

##### Params:

[](#params-2)

Read the documentation

```
string $numbers: parcel number (pl_number)
string $printType: default PDF, other epl, zpl
string $printFormat: default A6, other A4, A5
integer $printSequence: default 1
string $printPosition: default LeftTop

```

##### Example:

[](#example-2)

```
use Solunsky\Interconnector\Request\PrintLabel;

$print = new PrintLabel($auth, $response['pl_number']);

header("Content-type:application/pdf");
echo $print;

```

### Parcel pickup request

[](#parcel-pickup-request)

This method provides information for DPD that you need a courier that should pick up your parcels. It has to be used in cases if there is no pre-agreed regular parcel’ pick-up time.

##### Params:

[](#params-3)

Read the documentation

```
array $params

```

##### Example:

[](#example-3)

```
use Solunsky\Interconnector\Request\ParcelPickup;

$response = new ParcelPickup($auth, $params);

```

### Pickup point search

[](#pickup-point-search)

This method provides a list of DPD Pickup points (parcel shops and pickup lockers).

##### Params:

[](#params-4)

Read the documentation

```
array $params

```

### Parcel pickup request

[](#parcel-pickup-request-1)

This method provides information for DPD that you need a courier that should pick up your parcels. It has to be used in cases if there is no pre-agreed regular parcel’ pick-up time.

##### Params:

[](#params-5)

Read the documentation

```
array $params

```

##### Example:

[](#example-4)

```
use Solunsky\Interconnector\Request\ParcelPickup;

$response = new ParcelPickup($auth, $params);

```

### Deleting a parcel

[](#deleting-a-parcel)

This method deletes a specific parcel. If shipment consists of more than one parcel, whole shipment will be deleted in case if any parcel from this shipment is deleted.

Note: this function cannot be done in case if data has been transferred to DPD by closing manifest, by using parcelDataSend\_ (SendParcelData) or by automatic data transfer that is configured by DPD.

##### Params:

[](#params-6)

Read the documentation

```
string $numbers

```

##### Example:

[](#example-5)

```
use Solunsky\Interconnector\Request\DeleteShipment;

$response = new DeleteShipment($auth, $numbers);

```

### Parcel data submission

[](#parcel-data-submission)

This method submits shipment data to DPD. Regularity for this function can be adapted to client processes, but it should be requested at least 30 minutes before courier arrival. If needed, can be used after each parcel. It should not be used in case if manifest closure is used or if automatic data transfer is configured by DPD.

##### Params:

[](#params-7)

Read the documentation

```
mixed $auth

```

##### Example:

[](#example-6)

```
use Solunsky\Interconnector\Request\SendParcelData;

$response = new SendParcelData($auth);

```

### Manifest closure

[](#manifest-closure)

This method submits shipment data for shipments that are created on specific date and returns document that contains information about all the parcels that has been created by the API user on this date and that were not included in any other manifest. Regularity for this function can be adapted to client processes, but it should be requested at least 30 minutes before courier arrival. If needed, can be used after each parcel. It should not be used in case if parcel data submission method is used or if automatic data transfer is configured by DPD.

##### Params:

[](#params-8)

Read the documentation

```
mixed $date: (YYYYMM-DD)
mixed $format: default PDF, other json, zpl, epl

```

##### Example:

[](#example-7)

```
use Solunsky\Interconnector\Request\PrintManifest;

$response = new PrintManifest($auth, $date, $format);

```

### Collection request

[](#collection-request)

This method allows to order a courier to address of a third party. For example - for DPD client to organize his customer a free return of goods (paid by DPD client not his customer).

##### Params:

[](#params-9)

Read the documentation

```
array $params

```

##### Example:

[](#example-8)

```
use Solunsky\Interconnector\Request\RequestCollection;

$response = new RequestCollection($auth, $params);

```

Client (Step 3)
---------------

[](#client-step-3)

### Params:

[](#params-10)

[Read GuzzleHttp documentation](https://docs.guzzlephp.org/en/stable/quickstart.html#making-a-request)

#### Class Client

[](#class-client)

```
array $params

```

#### Method Get

[](#method-get)

```
mixed $request,
boolean $jsonDecode: default true

```

##### Example:

[](#example-9)

```
use Solunsky\Interconnector\Client;

$client = new Client(array('verify' => false));

$response = $client->get($request);

```

Create custom request
---------------------

[](#create-custom-request)

If you want to create your custom request use this example.

```
namespace Solunsky\Interconnector\Request;

class CustomRequest extends Request
{
    private $params;

    public function __construct($authentication, $params)
    {
        parent::__construct($authentication);

        $this->params = $params;
    }

    public function get()
    {
        $body = array_merge(
            $this->authentication->credentials(),
            $this->params
        );

        $headers = array(
            'Content-Type' => 'application/x-www-form-urlencoded; charset=utf-8',
        );

        return $this->build('POST', 'method_uri', $headers, $body);
    }
}

```

##### Use:

[](#use)

```
$customRequest = new CustomRequest($auth, $params);

$response = $client->get($customRequest);

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2043d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/31edfa0159a5cd5a108269854259e9ba996c6ef2195e999e926a96371b46d060?d=identicon)[SolunskyD](/maintainers/SolunskyD)

---

Top Contributors

[![Solunsky](https://avatars.githubusercontent.com/u/17966740?v=4)](https://github.com/Solunsky "Solunsky (1 commits)")

---

Tags

apilabelshippingdeliveryshipmentcourierparceldpdsolunskyinterconnector

### Embed Badge

![Health badge](/badges/solunsky-dpd-interconnector/health.svg)

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

###  Alternatives

[easypost/easypost-php

EasyPost Shipping API Client Library for PHP

1753.1M5](/packages/easypost-easypost-php)[gabrielbull/ups-api

PHP UPS API

4642.4M10](/packages/gabrielbull-ups-api)[mvdnbrk/dhlparcel-php-api

DHL Parcel API client for PHP

3957.9k5](/packages/mvdnbrk-dhlparcel-php-api)

PHPackages © 2026

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