PHPackages                             afzafri/poslaju-tracking-api - 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. afzafri/poslaju-tracking-api

ActiveLibrary[API Development](/categories/api)

afzafri/poslaju-tracking-api
============================

Return JSON formatted string of Poslaju Tracking details

v1.0.0(1y ago)131.8k15PHP

Since Jul 2Pushed 1y ago3 watchersCompare

[ Source](https://github.com/afzafri/Poslaju-Tracking-API)[ Packagist](https://packagist.org/packages/afzafri/poslaju-tracking-api)[ RSS](/packages/afzafri-poslaju-tracking-api/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Poslaju Tracking API
====================

[](#poslaju-tracking-api)

- Return JSON formatted string of Poslaju Tracking details
- I have been looking for Poslaju API but I cannot find the one that actually work and easy to use, so, I developed my own.
- Can be use for tracking the Poslaju parcel in your own project/system
- Note:
    - This is not the official API, this is actually just a "hack", or workaround for obtaining the tracking data.
    - This API will fetch data directly from the Poslaju Tracking website, so if there are any problem with the site, this API will also affected.

Installation
============

[](#installation)

`composer require afzafri/poslaju-tracking-api`

Usage
=====

[](#usage)

- `http://site.com/api.php?trackingNo=CODE`
- where `CODE` is your parcel tracking number
- It will then return a JSON formatted string, you can parse the JSON string and do what you want with it.

Sample Response
===============

[](#sample-response)

```
{
   "http_code":200,
   "error_msg":"No error",
   "message":"Record Found",
   "data":[
      {
         "date_time":"08 Sep 2020, 02:33:50 PM",
         "process":"Item delivered to JOE",
         "event":"Pos Laju Shah Alam "
      },
      {
         "date_time":"08 Sep 2020, 10:41:26 AM",
         "process":"Item out for delivery ",
         "event":"Pos Laju Shah Alam "
      },
      {
         "date_time":"08 Sep 2020, 07:39:04 AM",
         "process":"Arrive at delivery facility at ",
         "event":"Pos Laju Shah Alam "
      },
      {
         "date_time":"08 Sep 2020, 12:22:58 AM",
         "process":"Consignment dispatch out from Transit Office ",
         "event":"Pusat Mel Nasional"
      },
      {
         "date_time":"07 Sep 2020, 08:53:08 PM",
         "process":"Item processed. ",
         "event":"Pusat Mel Nasional"
      },
      {
         "date_time":"07 Sep 2020, 06:02:00 PM",
         "process":"Item dispatched out ",
         "event":"Pos Laju Rawang (Back End)"
      },
      {
         "date_time":"07 Sep 2020, 03:51:05 PM",
         "process":"Item picked up ",
         "event":"Pos Laju Rawang (Back End)"
      },
      {
         "date_time":"07 Sep 2020, 03:51:04 PM",
         "process":"Item picked up ",
         "event":"Pos Laju Rawang (Back End)"
      }
   ],
   "info":{
      "creator":"Afif Zafri (afzafri)",
      "project_page":"https:\/\/github.com\/afzafri\/Poslaju-Tracking-API",
      "date_updated":"18\/12\/2019"
   }
}

```

Updates
=======

[](#updates)

- 22/04/2025, Updated to use Poslaju API endpoint. No scraping required.
- 11/11/2020, Poslaju changed their tracking website URL. API fixed and updated.
- 18/12/2019, Poslaju changed their tracking website URL and change the way the data is displayed. API fixed and updated.
- 09/01/2018, Poslaju implement SSL in their website, API updated to support SSL by Razlan Abdul Aziz (rizfield)
- As of 29/1/2017, this API has been fixed and can be used as usual. Thanks to Haries Nur Ikhwan (hariesnurikhwan)
- As for 27/1/2017, this API seems not working anymore. This is due to poslaju changing the way the form submit in their tracking website. They are now using jquery to submit the form and append the form data.
- I will try to update this API, but don't expect much for a "hack" or workaround API

Created By
==========

[](#created-by)

- Afif Zafri
- Date: 16/12/2016
- Updated At: 22/04/2025
- Contact:

License
=======

[](#license)

This library is under `MIT license`, please look at the LICENSE file

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance50

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

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

368d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/277f98101508a807425a3f3a2e7cacf16a75934097e44ed1479351c2474b5fe2?d=identicon)[afzafri](/maintainers/afzafri)

---

Top Contributors

[![afzafri](https://avatars.githubusercontent.com/u/14824387?v=4)](https://github.com/afzafri "afzafri (45 commits)")[![akifrabbani](https://avatars.githubusercontent.com/u/1407235?v=4)](https://github.com/akifrabbani "akifrabbani (3 commits)")[![mafsa7](https://avatars.githubusercontent.com/u/4209107?v=4)](https://github.com/mafsa7 "mafsa7 (2 commits)")[![rizfield](https://avatars.githubusercontent.com/u/35249576?v=4)](https://github.com/rizfield "rizfield (2 commits)")[![izzudin96](https://avatars.githubusercontent.com/u/34004451?v=4)](https://github.com/izzudin96 "izzudin96 (1 commits)")

---

Tags

apijson-stringmalaysiaphpshipment-tracking

### Embed Badge

![Health badge](/badges/afzafri-poslaju-tracking-api/health.svg)

```
[![Health](https://phpackages.com/badges/afzafri-poslaju-tracking-api/health.svg)](https://phpackages.com/packages/afzafri-poslaju-tracking-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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