easyexpress / shunfeng
顺丰SDK
1.0.1
2017-12-17 11:51 UTC
Requires
- php: >=5.5.0
- doctrine/cache: ^1.6
- guzzlehttp/guzzle: ^6.3
- monolog/monolog: ^1.23
- pimple/pimple: ^3.0
Requires (Dev)
- mockery/mockery: ^0.9.9
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-09-20 08:55:25 UTC
README
EasyExpress 是一个用于使用顺丰API的PHP库。
SDK QQ群:665052579
要求
- PHP >= 5.5.9
- PHP cURL 扩展
- PHP OpenSSL 扩展
SDK 对所使用的框架无特别要求
安装
composer require "easyexpress/shunfeng:~1.0" -vvv
用法
基本使用:(以附加服务查询为例)
$config = [ 'debug' => true, 'appID' => '000***11', 'appKey' => 'AC9DA1B7452***775118CA8DB1237431', 'custID' => '7550***174', 'log' => [ 'level' => 'debug', 'file' => '/tmp/express.log' ] ]; $app = new \EasyExpress\Foundation\Application($config); $order = $app->order; $order->queryProductAdditional();
文档
强烈建议在了解顺丰文档后再使用本 SDK。 https://open.sf-express.com/doc/sf_openapi_document_V1.pdf
许可证
MIT