k4ml/postrack

Malaysian courier tracker library

Maintainers

Package info

github.com/k4ml/postrack

pkg:composer/k4ml/postrack

Statistics

Installs: 14

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

dev-master 2016-01-07 04:29 UTC

This package is not auto-updated.

Last update: 2026-03-04 14:02:17 UTC


README

Add the following to composer.json in your project:-

"require": {
    "k4ml/postrack": "@dev"
},

Run composer update.

To test the included command line client:-

php vendor/bin/tracker.php check <parcelNo>

Output should look like:-

To use the library in your application:-

<?
use k4ml\postrack\Parcel;
$parcel = new Parcel('EM61871881MY');
print_r($parcel->check());
?>

To run the tests (configured in phpunit.xml):-

vendor/bin/phpunit

Todos

A lot can be done. Among others:-

  • Plugin mechanism so we can add other courier as well.
  • Add tests !