kittinan/thailandpost-track
Composer 安装命令:
composer require kittinan/thailandpost-track
包简介
Simple library for Thailandpost track ems with chrome headless
README 文档
README
Thailand POST change their web page and open the API https://track.thailandpost.co.th/developerGuide
thailandpost-track
Simple library for thailandpost track EMS with Chrome headless
Requirement
- PHP 7.0+
- mbstring extension
- Chrome binary
Composer
Install the latest version with composer
composer require kittinan/thailandpost-track
This library on the Packagist.
https://packagist.org/packages/kittinan/thailandpost-track
Install Chrome
Install chromium-browser or Google Chrome
Ubuntu/Debian
sudo apt-get install chromium-browser
Usage
//Do not forget to define Google Chrome or Chromium binary path $chrome_bin = '/usr/bin/chromium-browser'; $track = new \KS\THAILANDPOST\Track($chrome_bin); $ems = 'EN123456789TH'; $trackers = $track->getTracks($ems); //Result return false or array of track status Array ( [0] => Array ( [date] => April 17, 2015 10:42:25 [location] => PAK CHONG [description] => Accept [status] => ) [1] => Array ( [date] => April 17, 2015 13:42:39 [location] => PAK CHONG [description] => Items Into Container [status] => ) )
You can enable English language.
//Do not forget to define Google Chrome or Chromium binary path $chrome_bin = '/usr/bin/chromium-browser'; $track = new \KS\THAILANDPOST\Track($chrome_bin); //For Thai language (default) $track->enableThaiLanguage //For English language $track->enableEngLanguage(); $ems = 'EN123456789TH'; $trackers = $track->getTracks($ems);
License
The MIT License (MIT)
kittinan/thailandpost-track 适用场景与选型建议
kittinan/thailandpost-track 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 507 次下载、GitHub Stars 达 19, 最近一次更新时间为 2015 年 04 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 kittinan/thailandpost-track 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kittinan/thailandpost-track 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 507
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-23