PHPackages                             afiqiqmal/parcel-track - 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. afiqiqmal/parcel-track

ActiveProject[API Development](/categories/api)

afiqiqmal/parcel-track
======================

Api Parcel Tracking API

1.13.0(6y ago)194.1k10[1 issues](https://github.com/afiqiqmal/parcel-track/issues)[1 PRs](https://github.com/afiqiqmal/parcel-track/pulls)MITPHPPHP &gt;=7.0

Since May 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/afiqiqmal/parcel-track)[ Packagist](https://packagist.org/packages/afiqiqmal/parcel-track)[ RSS](/packages/afiqiqmal-parcel-track/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (5)Versions (25)Used By (0)

Parcel Tracker
==============

[](#parcel-tracker)

[![Build Status](https://camo.githubusercontent.com/90c759c5bfa5a4c1f3af2b24c03de860f59288e4c2b622f2ddd34254a6ae28d5/68747470733a2f2f7472617669732d63692e6f72672f6166697169716d616c2f70617263656c2d747261636b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/afiqiqmal/parcel-track)[![Coverage](https://camo.githubusercontent.com/514be4ca90682d77eedc54d812f0fd9ee7e12d326b00a8538ad00d7bfd5220e5/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6166697169716d616c2f70617263656c2d747261636b2e737667)](https://codecov.io/gh/afiqiqmal/parcel-track)[![Packagist](https://camo.githubusercontent.com/022043533be160fd55db407ac32e1e59261383f49fa11a1503845b495ad386f2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6166697169716d616c2f70617263656c2d747261636b2e737667)](https://packagist.org/packages/afiqiqmal/parcel-track)[![Packagist](https://camo.githubusercontent.com/8b067f7fb9cca4c6697272d4e73324ba8156b491a6ae1c44b32b9d56169cfc5c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6166697169716d616c2f70617263656c2d747261636b2e737667)](https://packagist.org/packages/afiqiqmal/parcel-track)[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/paypalme/mhi9388?locale.x=en_US)

Simple Parcel Tracker for Local Parcel Courier. Basically it just crawl the courier website or existing API. Need time to time to monitor web/api changes before failure happen.

BTW, Currently available (Successfully Scraped)

1. [Post Laju](https://www.poslaju.com.my/)
2. [GDEX](http://www.gdexpress.com/malaysia/home/)
3. [ABX Express](http://www.abxexpress.com.my/)
4. [DHL Express](https://www.logistics.dhl/my-en/home.html)
5. [DHL E-Commerce](https://www.logistics.dhl/my-en/home/our-divisions/ecommerce.html)
6. [SkyNet Express](http://www.skynet.com.my/)
7. [CityLink Express](http://www.citylinkexpress.com/MY/Consignment.aspx)
8. [FedEx Express](https://www.fedex.com/my/)
9. [LEL Express](http://www.lex.com.my/)
10. [KTM Distribution Sdn Bhd](http://www.ktmd.com.my/tracking/)
11. [UPS](https://wwwapps.ups.com/WebTracking/track)

Tested in PHP 7.1 Only

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

[](#installation)

#### Step 1: Install from composer

[](#step-1-install-from-composer)

```
composer require afiqiqmal/parcel-track

```

Alternatively, you can specify as a dependency in your project's existing composer.json file

```
{
   "require": {
      "afiqiqmal/parcel-tracker": "^1.0"
   }
}

```

Usage
-----

[](#usage)

After installing, you need to require Composer's autoloader and add your code.

```
require_once __DIR__ .'/../vendor/autoload.php';
```

#### Sample for Post Laju

[](#sample-for-post-laju)

```
$data = parcel_track()
	->postLaju()
	->setTrackingNumber("ER157080065MY")
	->fetch();
```

#### Sample for GDex

[](#sample-for-gdex)

```
$data = parcel_track()
	->gdex()
	->setTrackingNumber("4941410530")
	->fetch();
```

#### Sample for Abx Express

[](#sample-for-abx-express)

```
$data = parcel_track()
	->abxExpress()
	->setTrackingNumber("EZP843055940197")
	->fetch();
```

#### Sample for DHL Express

[](#sample-for-dhl-express)

```
$data = parcel_track()
	->dhlExpress()
	->setTrackingNumber("5176011131")
	->fetch();
```

#### Sample for Check Which Carrier Tracking Number belongs to

[](#sample-for-check-which-carrier-tracking-number-belongs-to)

```
$data = parcel_track()
	->setTrackingNumber("5176011131")
	->checkCourier();
```

### Method

[](#method)

  Method Param Description   postLaju()  Post Laju Courier   abxExpress()  Post Laju Courier   dhlExpress()  DHL Express Courier   dhlCommerce()  DHL E-Commerce Courier   gdex()  GD Express Courier   skyNet()  SkyNet Express Courier   cityLink()  City Link Express Courier   fedEx()  FedEx Express Courier   lelExpress()  Lazada E-Logistic Courier   ktmDelivery()  KTM Distribution Sdn Bhd   ups()  United Parcel Service Courier   setTrackingNumber($refNumber) `String` Enter the tracking number ### Result

[](#result)

##### Checking Result

[](#checking-result)

For checking which carrier response like below:

```
{
    "code": 200,
    "error": false,
    "possible_carrier": [
        "ABX Express Sdn Bhd",
        "City Link Express"
    ],
    "generated_at": "2018-05-14 08:53:35",
    "footer": {
        "developer": {
            "name": "Hafiq",
            "homepage": "https://github.com/afiqiqmal"
        }
    }
}
```

##### Tracker Result

[](#tracker-result)

You should getting data tracker similarly like below:

```
{
    "code": 200,
    "error": false,
    "tracker": {
        "tracking_number": "4941410530",
        "provider": "gdex",
        "delivered": true,
        "checkpoints": [
            {
                "date": "2016-11-30 17:41:10",
                "timestamp": 1480527670,
                "process": "Outbound from KBR station",
                "type": "item_received",
                "event": "Kota Bharu"
            },
            {
                "date": "2016-11-30 17:47:00",
                "timestamp": 1480528020,
                "process": "Picked up by courier",
                "type": "dispatch",
                "event": "Kota Bharu"
            },
            {
                "date": "2016-12-01 03:25:11",
                "timestamp": 1480562711,
                "process": "In transit",
                "type": "facility_process",
                "event": "Petaling Jaya"
            },
            {
                "date": "2016-12-01 10:00:16",
                "timestamp": 1480586416,
                "process": "Inbound to JHB station",
                "type": "facility_process",
                "event": "Johor Bharu"
            },
            {
                "date": "2016-12-02 10:10:00",
                "timestamp": 1480673400,
                "process": "Delivered",
                "type": "delivered",
                "event": "Sungai Tiram"
            }
        ]
    },
    "generated_at": "2018-05-03 02:07:20",
    "footer": {
        "source": "GD Express Sdn Bhd",
        "developer": {
            "name": "Hafiq",
            "homepage": "https://github.com/afiqiqmal"
        }
    }
}
```

Todo
----

[](#todo)

- Struggling for other Parcel Data
- Keep up to date if any parcel data changes

Issue
-----

[](#issue)

- If Issue happen like the api always return empty \[\] after cross check with real site, just let me know =)

Pftt.. I just don't know why, the Travis CI is failed. It because of `gnutls\_handshake() failed`. In my local env, all Test Unit Passed . I disabled it first because always failing on travis-ci.org =)
\## ChangeLog - See changelog.md License
-------

[](#license)

Licensed under the [MIT license](http://opensource.org/licenses/MIT)

### Donate

[](#donate)

[![](https://camo.githubusercontent.com/fae49c14c08b15cedc0f829bf690717f2edabe33f88a6c67f6f8f7225702abc6/68747470733a2f2f692e696d6775722e636f6d2f5932677172326a2e706e67)](https://www.paypal.com/paypalme/mhi9388?locale.x=en_US)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 97.3% 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

Every ~25 days

Recently: every ~121 days

Total

21

Last Release

2464d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1285084ec2d00e6c1442d03992cd156772da7267efdcbe59ac913c0676a9eb89?d=identicon)[afiqiqmal](/maintainers/afiqiqmal)

---

Top Contributors

[![afiqiqmal](https://avatars.githubusercontent.com/u/9051312?v=4)](https://github.com/afiqiqmal "afiqiqmal (107 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![nazrulwazir](https://avatars.githubusercontent.com/u/19516809?v=4)](https://github.com/nazrulwazir "nazrulwazir (1 commits)")

---

Tags

abx-expressapicitylinkcourierdhl-expressfedexgdexpresshacktoberfestlazadalibrarymalaysiaopen-sourceparcelphpposlajuposlaju-phpskynettrackertravis-ciphpparcel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/afiqiqmal-parcel-track/health.svg)

```
[![Health](https://phpackages.com/badges/afiqiqmal-parcel-track/health.svg)](https://phpackages.com/packages/afiqiqmal-parcel-track)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[statamic/cms

The Statamic CMS Core Package

4.8k3.5M923](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9417.2k55](/packages/open-dxp-opendxp)[sproutcms/cms

Enterprise content management and framework

242.2k4](/packages/sproutcms-cms)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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