maxirus/fedex
最新稳定版本:v0.0.1-beta
Composer 安装命令:
composer require maxirus/fedex
包简介
FedEx API wrapper
关键字:
README 文档
README
This package is aimed at wrapping the FedEx Tracking service in a simple to use PHP Library. Feel free to contribute.
Table Of Content
Requirements
This library uses PHP 5.3+.
To use the FedEx API, you have to request an access key from FedEx. For every request, you will have to provide the Access Key, Password, Account Number and Meter Number.
Installation
It is recommended that you install the PHP FedEx Tracking API Wrapper library through composer. To do so,
add the following lines to your composer.json file.
{
"require": {
"maxirus/fedex": "dev-master"
}
}
Track Class
The Track Class allows you to track a shipment using the FedEx Tracking API by simply providing a Tracking # or Order Tag number.
Example
$tracking = new FedEx\TrackService\Track($accessKey, $password, $acctNum, $meterNum); try { $shipment = $tracking->getByTrackingId('TRACKING NUMBER'); var_dump($shipment); } catch (Exception $e) { var_dump($e); }
Parameters
Track parameters are:
trackingNumberThe package’s tracking number.
统计信息
- 总下载量: 6.15k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-13