Ziftr API Bindings for PHP
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, (*1)
, (*2)
Installation
The Ziftr API Client can be installed via Composer by requiring the
ziftr/api-client
package in your project's composer.json
., (*3)
{
"require": {
"ziftr/api-client": "0.1.*@dev"
}
}
Then run a composer update, (*4)
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., (*5)
Usage
$request = new \Ziftr\ApiClient\Request('/orders', $configuration);
$response = $request->get();
Links