PHPackages                             omobude/dhl-symfony-bundle - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. omobude/dhl-symfony-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

omobude/dhl-symfony-bundle
==========================

Modern Symfony 7+ bundle for DHL API integration. Create shipment labels and download DHL shipment labels with ease.

v1.0.1(3mo ago)0447MITPHPPHP ^8.2

Since Feb 7Pushed 3mo agoCompare

[ Source](https://github.com/komobude2021/dhl-symfony-bundle)[ Packagist](https://packagist.org/packages/omobude/dhl-symfony-bundle)[ RSS](/packages/omobude-dhl-symfony-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (3)Used By (0)

DHL Symfony Bundle
==================

[](#dhl-symfony-bundle)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/c9f64f714c636ba27a3bba6dfd52f98426832db1262747efa54b212d16943651/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e322d626c7565)](https://php.net)[![Symfony](https://camo.githubusercontent.com/21f615d48547c3546d76690b4117c3a28c5d351c6166acc8ad7a16fe11de418c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73796d666f6e792d253545372e302d626c7565)](https://symfony.com)

Modern Symfony 7+ bundle for DHL API integration. Create shipment labels, view and download DHL shipments label with ease using OAuth authentication.

Features
--------

[](#features)

- 🚀 **Create DHL shipments**
- 📦 **Download shipping labels** (PDF)
- 🔐 **OAuth 2.0 authentication** with automatic token management
- ⚡ **Token caching** for optimal performance
- 🧪 **Sandbox mode** for testing
- 📝 **Comprehensive logging** support
- 🎯 **Type-safe models** with PHP 8.2+
- 🔄 **Modern Symfony 7 integration**

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

[](#requirements)

- PHP 8.2 or higher
- Symfony 7.0 or higher
- Symfony Cache component
- DHL Developer Account ([Sign up here](https://developer.dhl.com/))

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Getting DHL Credentials](#getting-dhl-credentials)
- [Usage](#usage)
    - [Creating a Shipment](#creating-a-shipment)
    - [Downloading a Label](#downloading-a-label)
- [Configuration Reference](#configuration-reference)
- [Switching to Production](#switching-to-production)
- [Troubleshooting](#troubleshooting)
- [Contributing](#contributing)
- [License](#license)

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

[](#installation)

### Step 1: Install the Bundle

[](#step-1-install-the-bundle)

```
composer require omobude/dhl-symfony-bundle
```

### Step 2: Register the Bundle (If Not Auto-Registered)

[](#step-2-register-the-bundle-if-not-auto-registered)

If Symfony Flex doesn't automatically register the bundle, manually add it to `config/bundles.php`:

```
