ziftr / api-client
Ziftr API PHP Client Bindings
dev-master
2015-09-03 20:52 UTC
Requires
- php: >=5.3
This package is not auto-updated.
Last update: 2025-02-01 19:32:05 UTC
README
This branch is under active development and should not be considered stable for use in production systems. For more information please visit: www.ziftrpay.com
Installation
The Ziftr API Client can be installed via Composer by requiring the
ziftr/api-client
package in your project's composer.json
.
{ "require": { "ziftr/api-client": "0.1.*@dev" } }
Then run a composer update
php composer.phar update
Configuration
$configuration = new \Ziftr\ApiClient\Configuration(); $configuration->load_from_array(array( 'host' => 'sandbox.fpa.bz', 'port' => 443, 'secure' => true, 'private_key' => '...', 'publishable_key' => '...' ));
You can create custom configuration loaders by extending the \Ziftr\ApiClient\Configuration
class.
Usage
$request = new \Ziftr\ApiClient\Request('/orders', $configuration); $response = $request->get();