PHPackages                             slince/shipment-tracking-dhl-ecommerce - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. slince/shipment-tracking-dhl-ecommerce

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

slince/shipment-tracking-dhl-ecommerce
======================================

A flexible and shipment tracking library for DHL eCommerce.

1.0.0(8y ago)24291MITPHPPHP &gt;=5.6.0CI failing

Since Jul 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/slince-archived/shipment-tracking-dhl-ecommerce)[ Packagist](https://packagist.org/packages/slince/shipment-tracking-dhl-ecommerce)[ RSS](/packages/slince-shipment-tracking-dhl-ecommerce/feed)WikiDiscussions master Synced 1mo ago

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

Shipment Tracking Library For DHL eCommerce
===========================================

[](#shipment-tracking-library-for-dhl-ecommerce)

[![Build Status](https://camo.githubusercontent.com/7cb17eb4a2cba36e9be9acbd552c8fa63fcb54777a4ef3db300e95819a7fbb42/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736c696e63652f736869706d656e742d747261636b696e672d64686c2d65636f6d6d657263652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/slince/shipment-tracking-dhl-ecommerce)[![Coverage Status](https://camo.githubusercontent.com/a2ef9a8753d041531ae111f03e25ed3cc9b8221b47f083a5bf05ea5c610ad0a3/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f736c696e63652f736869706d656e742d747261636b696e672d64686c2d65636f6d6d657263652e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/github/slince/shipment-tracking-dhl-ecommerce)[![Latest Stable Version](https://camo.githubusercontent.com/5285dccb6e0eae11ba63428a81cfc27cbb7c8412e7d8597f95b833c444213d5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736c696e63652f736869706d656e742d747261636b696e672d64686c2d65636f6d6d657263652e7376673f7374796c653d666c61742d737175617265266c6162656c3d737461626c65)](https://packagist.org/packages/slince/shipment-tracking-dhl-ecommerce)[![Scrutinizer](https://camo.githubusercontent.com/8085e14df32ed3f5581419fddd90ef712a5a6bf74546201136736f3e2145b1c8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f736c696e63652f736869706d656e742d747261636b696e672d64686c2d65636f6d6d657263652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/slince/shipment-tracking-dhl-ecommerce/?branch=master)

A flexible and shipment tracking library for DHL eCommerce and DHL eCommerce(Registered)

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

[](#installation)

Install via composer

```
$ composer require slince/shipment-tracking-dhl-ecommerce
```

Basic Usage
-----------

[](#basic-usage)

```
$tracker = new Slince\ShipmentTracking\DHLECommerce\DHLECommerceTracker(CLIENT_ID, PASSWORD);

try {
   $shipment = $tracker->track('CNAQV100168101');

   if ($shipment->isDelivered()) {
       echo "Delivered";
   }
   echo $shipment->getOrigin();
   echo $shipment->getDestination();
   print_r($shipment->getEvents());  //print the shipment events

} catch (Slince\ShipmentTracking\Exception\TrackException $exception) {
    exit('Track error: ' . $exception->getMessage());
}
```

The above code will get access token automatically for shipment information.

### Access Token

[](#access-token)

```
$shipment = $tacker->track('CNAQV100168101);
$accessToken = $tracker->getAccessToken(); //You can save this for the next query

//... to do

try{
    $tracker->setAccessToken($accessToken); //Set the access token; the tracker will not send requst for the access token
    $shipment = $tacker->track('CNAQV100168101);
} catch (Slince\ShipmentTracking\DHLECommerce\Exception\InvalidAccessTokenException $exception) {
     $accessToken = $tracker->getAccessToken(true); // If the access token is invalid, refresh it.
     $shipment = $tacker->track('CNAQV100168101);
     //... to do
} catch (Slince\ShipmentTracking\Exception\TrackException $exception) {
    exit('Track error: ' . $exception->getMessage());
}
```

License
-------

[](#license)

The MIT license. See [MIT](https://opensource.org/licenses/MIT)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

3211d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3785826?v=4)[Tao](/maintainers/slince)[@slince](https://github.com/slince)

---

Top Contributors

[![slince](https://avatars.githubusercontent.com/u/3785826?v=4)](https://github.com/slince "slince (12 commits)")

---

Tags

dhldhl-ecommerceparcelshipmenttrackingtrackingshipmenttrackerparceldhlDHL eCommerce

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/slince-shipment-tracking-dhl-ecommerce/health.svg)

```
[![Health](https://phpackages.com/badges/slince-shipment-tracking-dhl-ecommerce/health.svg)](https://phpackages.com/packages/slince-shipment-tracking-dhl-ecommerce)
```

###  Alternatives

[slince/shipment-tracking

A flexible and awesome shipment tracking library for several carriers like DHL eCommerce, USPS, YanWen Express, Epacket, E包裹, E特快, 国际EMS, 快递100

291.6k4](/packages/slince-shipment-tracking)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9738.8k](/packages/sauladam-shipment-tracker)[zumba/amplitude-php

PHP SDK for Amplitude

409.5M5](/packages/zumba-amplitude-php)[hcodes/server_yametrika

Server-side tracking of visitors using Yandex.Metrica

7220.2k](/packages/hcodes-server-yametrika)[symbiote/silverstripe-datachange-tracker

Record and track changes to any dataobjects. View chages/diffs in model admin.

1622.7k3](/packages/symbiote-silverstripe-datachange-tracker)

PHPackages © 2026

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