Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 891 Bytes

README.md

File metadata and controls

58 lines (42 loc) · 891 Bytes

KCB Buni API PHP SDK

Table of contents

Installation

composer require osenco/kcb

Instantiation

use Osen\Kcb\Buni;

$buni = new Buni(array(
    'token' => '',
    'env'   => 'sandbox',
));

Usage

Check forex rate

$rate = $buni->forex()->rates('USD');
// or $rate = $buni->forex()->from('EUR')->to('USD')->exchange(100);

// parse response
$json = $rate->json();
$object = $rate->object();

Check account information

$account = $buni->account()->info();
$json = $account->json();
$object = $account->object();

Vooma

Make payment

$pay = $buni->vooma()->pay(100);
$json = $pay->json();
$object = $pay->object();