定制 k4ml/postrack 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

k4ml/postrack

Composer 安装命令:

composer require k4ml/postrack

包简介

Malaysian courier tracker library

README 文档

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 !

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: ISC
  • 更新时间: 2015-02-03