# dhl/shipping-m2

> DHL multi-division shipping extension for Magento 2

`composer require dhl/shipping-m2`

Canonical URL: https://packagento.com/dhl/shipping-m2

## At a glance

- **Vendor**: dhl (https://packagento.com/dhl.md)
- **Latest version**: 2.15.0 — released 2026-03-19
- **Pricing**: Free
- **Package type**: Metapackage (bundle of modules)
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/dhl/shipping-m2 and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require dhl/shipping-m2:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

DHL multi-division shipping extension for Magento 2

## README

Post & DHL Shipping Extension for Magento 2
===========================================

The extension Post & DHL Shipping is a plugin to integrate Post & DHL logistics APIs
into the Magento 2 platform's order processing workflow.

This is a *meta package*, which means it is a compilation of several other composer packages
that only together enable the functionality of the plugin.

Please see the file `composer.json` for the full list of included packages.

### Requirements and Compatibility

Generally, Post & DHL Shipping is compatible with PHP 8.3.0 and later, and Magento 2.4.8 and later.

For detailed system requirements, please see the packages required in `composer.json`.

### Installation Instructions

Install sources:

    composer require dhl/shipping-m2

Refresh Magento 2 database and caches:

    ./bin/magento setup:upgrade
    ./bin/magento cache:flush
    ./bin/magento setup:di:compile

### Uninstallation

Please see the packages required in `composer.json` for individual uninstallation instructions.

To remove the metapackage from the application, run the following command:
    
    composer remove dhl/shipping-m2

### Support

In case of questions or problems, please have a look at the
[Support Portal (FAQ)](http://dhl.support.netresearch.de/) first.

If the issue cannot be resolved, you can contact the support team via the
[Support Portal](http://dhl.support.netresearch.de/) or by sending an email
to <dhl.support@netresearch.de>.

### License

[OSL - Open Software Licence 3.0](http://opensource.org/licenses/osl-3.0.php)

### Copyright

(c) 2022 Netresearch DTT GmbH

## Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

### 2.15.0

Internetmarke REST API Migration

#### Changed

- Migrated Deutsche Post Internetmarke from SOAP to REST API
- Updated module dependency constraints to latest patch versions

### 2.14.0

Magento 2.4.8 compatibility release

#### Added

- Support for Magento 2.4.8
- Support for PHP 8.3 and PHP 8.4
- Support for GoGreen Plus service for domestic shipments
- Support for GoGreen Plus service for domestic return shipments

#### Changed

- Updated shipping API service schema to v2.1.12

#### Removed

- Support for PHP 8.2

### 2.13.0

Extended Customs Information

#### Added

- MRN (Master Reference Number) Input in packaging popup

#### Changed 

- Validation for HScode Input


### 2.12.0

Deutsche Post Warenpost becomes DHL Kleinpaket

#### Added

- support for DHL Kleinpaket

#### Removed

- support for Deutsche Post Warenpost


### 2.11.0

Magento 2.4.7 compatibility release

#### Added

- Support for Magento 2.4.7

#### Changed

- Replace Zend_Measurement with Magento Framework Measurement
- Use escaper instead of block for escaping in templates
- Replace sdk-api-bcs with the new sdk-api-parcel-de (Paket DE Versenden V2 API REST)

#### Removed

- Support for PHP 7.1
- Support for PHP 8.1

### 2.10.0

#### Added

- Select "Postal Delivery Duty Paid" (PDDP) service with shipments to Switzerland (CH).
- Declare customs reference numbers with DHL Paket International shipments.

#### Fixed

- Prevent DHL service box rendering issues in checkout.
- Successful Autocomplete requests are no longer logged.
- New orders are now scheduled for address check if _Analysis via Cron_ is enabled.

### 2.9.0

#### Added

- Select "Signed for by recipient" (Empfängerunterschrift) service with DHL Paket National shipments.
- Select "Postal Delivery Duty Paid" (PDDP) service with DHL Paket International shipments.
- Select "Closest Droppoint" (CDP) service with DHL Paket International shipments.

#### Changed

- Switch from DHL Business Customer Shipping SOAP API to DHL Parcel DE Shipping REST API.
- The DHL Paket "Print Only If Codeable" config setting can no longer be updated in packaging popup.

#### Fixed

- Prevent exception when loading return shipments with no shipment number in admin panel grid.
- Prevent type error when loading service charge amounts from module configuration.

### 2.8.0

#### Added

- On the pickup location finder map in checkout, if available, show description of the building/facility etc. a service point is located within.
- The "Bulky Goods" service can now be booked with DHL Paket International shipments.
- Select endorsement (abandon, return) for international, undeliverable shipments.
- Select "Named Person Only" service with DHL Paket National shipments.
- Select "No Neighbor Delivery" service with DHL Paket National shipments.
- Link to Marketplace review page in module configuration.

#### Changed

- The "Print Receiver Contact Details" configuration setting is replaced by a "Send Receiver Phone Number" setting that applies to cross-border shipments only.

#### Fixed (Shipping Carriers)

- Improve handling of apartment addresses when splitting the recipient street.
- Prevent application crash when API returns empty response.
- Prevent broken styling in module configuration.
- Consider database prefixes in INTERNETMARKE carrier module.
- Calculation of initial packaging popup input field visibilities.

#### Fixed (Deutsche Post Direkt)

_(Changelog truncated for .md surface. Full history on https://packagento.com/dhl/shipping-m2.)_

## Recent Versions

| Version | Released |
|---|---|
| 2.15.0 | 2026-03-19 |
| 2.14.0 | 2025-08-07 |
| 2.14.0-rc1 | 2025-07-02 |
| 2.13.0 | 2025-03-19 |
| 2.12.0 | 2025-02-04 |
| 2.11.0 | 2024-05-31 |
| 2.10.0 | 2023-11-02 |
| 2.9.0 | 2023-07-17 |
| 2.8.0 | 2023-04-12 |
| 2.7.1 | 2022-09-07 |

Showing 10 of 26 versions. Full release history on https://packagento.com/dhl/shipping-m2.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| deutschepost/module-addressfactory-m2 | ~1.6.1 |
| deutschepost/module-autocomplete-m2 | ~1.6.1 |
| deutschepost/module-internetmarke | ~2.7.0 |
| dhl/module-carrier-paket | ~3.4.3 |
| dhl/module-carrier-paket-returns | ~2.4.0 |
| netresearch/module-admin-notification-feed | ~1.2.0 |
| netresearch/module-interactive-batch-processing | ~1.3.0 |
| netresearch/module-shipping-ui | ~2.6.0 |

## Quality

Latest release (2.15.0) passes the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | not tested | not tested | – | – |
| 2.4.8 | – | not tested | not tested | – |
| 2.4.9 | – | – | not tested | not tested |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | N/A | 0 | metapackage ships no source of its own — phpcs skipped (#122) |
| PHPMD | N/A | 0 | metapackage ships no source of its own — phpmd skipped (#122) |
| Cpd | N/A | 0 | metapackage ships no source of its own — cpd skipped (#122) |
| PHP Compatibility | N/A | 0 | metapackage ships no source of its own — php-compatibility skipped (#122) |
| Composer validate | Info | 1 | valid; 1 advisory note (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | Error | – | – |
| 2.4.8 | – | Skipped | Skipped | – |
| 2.4.9 | – | – | Skipped | Skipped |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | N/A | 0 | metapackage ships no source of its own — malware scan skipped (#122) |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["dhl/shipping-m2"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

dhl is a Magento 2 vendor on Packagento. See https://packagento.com/dhl.md for their full catalogue.

