Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 564 Bytes

README.md

File metadata and controls

49 lines (34 loc) · 564 Bytes

WayaWaya API PHP SDK

Installation

Composer

composer require osen/wayawaya

Manual

require_once('path/to/autoload.php');

Usage

Instantiate class

<?php

use Osen\Waya\Kplc;

Kplc::configure($credentials);

Available Services

Kenya Power Tokens

try {
  $request = Kplc::tokens($account);
} catch (\Throwable $th) {
  return $th->getMessage();
}

Kenya Power Postpay

try {
  $request = Kplc::postpay($account);
} catch (\Throwable $th) {
  return $th->getMessage();
}