Skip to content

osenco/wayawaya

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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