dsposito/argo
最新稳定版本:v2.1.0
Composer 安装命令:
composer require dsposito/argo
包简介
A shipping utility.
README 文档
README
Overview
Argo is a useful utility for shipping-related tasks. In particular, it deduces the shipping carrier, provider and other information based on a provided package tracking number.
In Greek mythology, Argo (in Greek, meaning 'swift') was the ship on which Jason and the Argonauts sailed from Iolcos to retrieve the Golden Fleece. Argo was said to have been planned with the help of Athena - constructed with magical pieces of timber from the sacred forest of Dodona.
Installation
Run the following composer command to add the package to your project:
composer require dsposito/argo
Alternatively, add "dsposito/argo": "^2.0" to your composer.json file.
Usage
Simply provide a tracking number when initializing a new package instance.
$package = Argo\Package::instance('420 90401 9405 5108 9841 6000 5592 67');
print_r($package);
Example output:
Argo\Package Object
(
[tracking_code_original] => 420 90401 9405 5108 9841 6000 5592 67
[tracking_code] => 9405510898416000559267
[carrier] => Argo\Carrier Object
(
[code] => usps
[name] => USPS
)
[provider] => Argo\Provider Object
(
[code] => endicia
[name] => Endicia
)
)
Tests
To run the test suite, run the following commands from the root directory:
composer install
vendor/bin/phpunit
统计信息
- 总下载量: 167.15k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 23
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-27