Skip to content

Amuri-Bonface/kcb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%