ziftr / api-client
Ziftr API PHP 客户端绑定
dev-master
2015-09-03 20:52 UTC
Requires
- php: >=5.3
This package is not auto-updated.
Last update: 2024-09-14 17:26:44 UTC
README
这个分支正在积极开发中,不应被视为用于生产系统的稳定版本。更多信息请访问:www.ziftrpay.com
安装
可以通过在项目中的 composer.json
中要求 ziftr/api-client
包,使用 Composer 安装 Ziftr API 客户端。
{ "require": { "ziftr/api-client": "0.1.*@dev" } }
然后运行 composer update
php composer.phar update
配置
$configuration = new \Ziftr\ApiClient\Configuration(); $configuration->load_from_array(array( 'host' => 'sandbox.fpa.bz', 'port' => 443, 'secure' => true, 'private_key' => '...', 'publishable_key' => '...' ));
可以通过扩展 \Ziftr\ApiClient\Configuration
类来创建自定义配置加载器。
使用方法
$request = new \Ziftr\ApiClient\Request('/orders', $configuration); $response = $request->get();