Skip to content

k4ml/postrack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quickstart

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 !

About

Malaysian courier tracking library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages