ziftr/api-client

Ziftr API PHP Client Bindings

dev-master 2015-09-03 20:52 UTC

This package is not auto-updated.

Last update: 2024-05-11 15:40:25 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

@awsforphp on Twitter Latest Development Version

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();

Links