Download the PHP package afiqiqmal/parcel-track without Composer
On this page you can find all versions of the php package afiqiqmal/parcel-track. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package parcel-track
Parcel Tracker
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)
- Post Laju
- GDEX
- ABX Express
- DHL Express
- DHL E-Commerce
- SkyNet Express
- CityLink Express
- FedEx Express
- LEL Express
- KTM Distribution Sdn Bhd
- UPS
Tested in PHP 7.1 Only
Installation
Step 1: Install from composer
Alternatively, you can specify as a dependency in your project's existing composer.json file
Usage
After installing, you need to require Composer's autoloader and add your code.
Sample for Post Laju
Sample for GDex
Sample for Abx Express
Sample for DHL Express
Sample for Check Which Carrier Tracking Number belongs to
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
Checking Result
For checking which carrier response like below:
Tracker Result
You should getting data tracker similarly like below:
Todo
- Struggling for other Parcel Data
- Keep up to date if any parcel data changes
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
Licensed under the MIT license
Donate
All versions of parcel-track with dependencies
guzzlehttp/guzzle Version ^6.3
symfony/dom-crawler Version ^4.0
symfony/css-selector Version ^4.0
nesbot/carbon Version 1.25.*