Download the PHP package rafalli/dpd-info-services-bundle without Composer
On this page you can find all versions of the php package rafalli/dpd-info-services-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rafalli/dpd-info-services-bundle
More information about rafalli/dpd-info-services-bundle
Files in rafalli/dpd-info-services-bundle
Package dpd-info-services-bundle
Short Description Symfony 7.4 Bundle integrating DPD InfoServices SOAP API for tracking packages
License MIT
Informations about the package dpd-info-services-bundle
DPD InfoServices Symfony Bundle
Installation
Install the package via Composer:
Configuration
-
Create a configuration file
rafalli_dpd_info_services.yamlin your Symfony project: - Add your DPD credentials to your
.envfile:
Usage
Basic Interaction
Inject the DpdInfoServiceClientInterface and use the following pattern to handle tracking updates:
Checking a Single Waybill
To check the history of a specific parcel without affecting the global event queue:
Delivery Tracking Utility
If you only need to know whether a parcel was successfully delivered (and exactly when), you can use the built-in WaybillDeliveryTrackerInterface which provides clean and easy-to-use domain logic.
Translations
The bundle provides an EventCode Enum that integrates with Symfony's Translation component. You can render translated descriptions directly in Twig:
Error Handling
All SOAP-related errors or validation issues throw a Rafalli\DpdInfoServicesBundle\Exception\DpdApiException. This exception encapsulates the original SoapFault, making it easy to debug while keeping your application domain clean.
License
MIT License
All versions of dpd-info-services-bundle with dependencies
ext-soap Version *
symfony/framework-bundle Version ^6.4 || ^7.0 || ^8.0
symfony/translation Version ^6.4 || ^7.0 || ^8.0