PHPackages                             muyiwa/dojah - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. muyiwa/dojah

ActiveLibrary

muyiwa/dojah
============

a php package to handle the api calls to the dojah platform

v2.1.7(4y ago)14.3kMITPHPPHP ^7.3|^8.0

Since Dec 8Pushed 4y ago2 watchersCompare

[ Source](https://github.com/SammyWright-King/dojah)[ Packagist](https://packagist.org/packages/muyiwa/dojah)[ RSS](/packages/muyiwa-dojah/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (22)Used By (0)

dojah
=====

[](#dojah)

php package library to handle the api calls to dojah platform

installation PHP and Composer are both required to use this package

To use the latest version of Dojah php package in your project, simple require it like this

composer require muyiwa/dojah

or add the following line to the require block to your composer.json file and run composer install

"require": { "muyiwa/dojah": "v1.0.\*" },

Usage

require\_once **DIR** . '/vendor/autoload.php'; use muyiwa\\dojah\\Dojah;

create an instance of the Dojah class

$dojah = new Dojah();

to access the url, the base url needs to be specified depending on the mode you are on the dojah platform (i.e sandbox or live). Remember, the sandbox otherwise test mode is for testing purposes only while the live is for production.

//assign a base url

$dojah-&gt;setBaseUrl("current base url");

before gaining access to any endpoint, some extra header data are required like authorization and appid provided to you on your dojah platform.

//set authorization secret Key

$dojah-&gt;setSecretKey("Your secret key");

//set app id

$dojah-&gt;setAppId("your app id");

OR

set both secret key and app id at once

$dojah-&gt;setheader("Your secret key", "Your app id");

now you can call methods on the dojah object created above

//to fetch your dojah balance

Full code

require\_once **DIR** . '/vendor/autoload.php';

use muyiwa\\dojah\\Dojah;

$dojah = new Dojah();

$dojah-&gt;setBaseUrl(""); //assign a base url

$dojah-&gt;setSecretKey("test\_sk\_hqnCg9JOYcIEeJN2QVMFIkiNU"); //set authorization secret Key

$dojah-&gt;setAppId("5fc9fd6eb8c8e4003e08df8b"); //set app id

echo $dojah-&gt;getBalance(); //to fetch your dojah balance

Result {"entity":{"wallet\_balance":"0.00"}}

$dojah-&gt;getBalance();

Result {"entity":{"wallet\_balance":"0.00"}}

other services includes -&gt; FINACIAL SERVICES

use muyiwa\\dojah\\Finance;

//instantiate the finance class $finance = new Finance();

//get account information $finance-&gt;getAccountInfo($account\_id);

//get basic bvn information $finance-&gt;basicBVN($account\_id);

//get full bvn information $finance-&gt;getFullBVN($account\_id);

//get account transaction details from their bank $finance-&gt;getTransactions($account\_id);

//retrieve recurring payments that occur periodically from transactions $finance-&gt;subscriptions($account\_id, $status = null, $start\_date = null, $end\_date = null) where status is subscription that either "expired" or "not expired" which can be null start\_date = transaction start date end\_date = transaction end date

//get income pattern $finance-&gt;fetchIncomePattern($account\_id, $duration=null);

//get spending pattern $finance-&gt;fetchSpendingPattern($account\_id, $duration=null);

Full code

require\_once **DIR** . '/vendor/autoload.php';

use muyiwa\\dojah\\Finance;

$finance = new Finance();

$finance-&gt;setBaseUrl(""); //assign a base url

$finance-&gt;setSecretKey("test\_sk\_hqnCg9JOYcIEeJN2QVMFIkiNU"); //set authorization secret Key

$finance-&gt;setAppId("5fc9fd6eb8c8e4003e08df8b"); //set app id

$finance-&gt;getAccountInfo($account\_id);

//get basic bvn information $finance-&gt;basicBVN($account\_id);

//get full bvn information $finance-&gt;getFullBVN($account\_id);

//get account transaction details from their bank $finance-&gt;getTransactions($account\_id);

//retrieve recurring payments that occur periodically from transactions $finance-&gt;subscriptions($account\_id, $status = null, $start\_date = null, $end\_date = null)

//get income pattern $finance-&gt;fetchIncomePattern($account\_id, $duration=null);

//get spending pattern $finance-&gt;fetchSpendingPattern($account\_id, $duration=null);

-&gt;KYC SERVICES use muyiwa\\dojah\\KYC;

//instantiate the finance class $kyc = new KYC();

//lookup basic bvn $kyc-&gt;lookUpBasicBvn($bvn);

//lookup full bvn $kyc-&gt;lookupFullBvn($bvn);

//get customer information with the nuban $kyc-&gt;getUserFromNuban($account\_number, $bank\_code);

//lookup tin $kyc-&gt;lookupTIN($tin);

//lookup vin $kyc-&gt;lookupVin($vin);

//lookup nin $kyc-&gt;lookupNin($nin);

//lookup driver's license $kyc-&gt;lookupDriverLicense($license\_no, $dob);

//lookup CAC $kyyc-&gt;lookupCAC($rc\_no, $company\_name);

//get users details from phone number $kyc-&gt;lookupPhoneNo($number);

Full code

require\_once **DIR** . '/vendor/autoload.php';

use muyiwa\\dojah\\KYC;

$kyc = new KYC();

$kyc-&gt;setBaseUrl(""); //assign a base url

$kyc-&gt;setSecretKey("test\_sk\_hqnCg9JOYcIEeJN2QVMFIkiNU"); //set authorization secret Key

$kyc-&gt;setAppId("5fc9fd6eb8c8e4003e08df8b"); //set app id

//lookup basic bvn $kyc-&gt;lookUpBasicBvn($bvn);

//lookup full bvn $kyc-&gt;lookupFullBvn($bvn);

//get customer information with the nuban $kyc-&gt;getUserFromNuban($account\_number, $bank\_code);

//lookup tin $kyc-&gt;lookupTIN($tin);

//lookup vin $kyc-&gt;lookupVin($vin);

//lookup nin $kyc-&gt;lookupNin($nin);

//lookup driver's license $kyc-&gt;lookupDriverLicense($license\_no, $dob);

//lookup CAC $kyyc-&gt;lookupCAC($rc\_no, $company\_name);

//get users details from phone number $kyc-&gt;lookupPhoneNo($number);

-&gt;MESSAGE SERVICES use muyiwa\\dojah\\Message;

//instantiate the finance class $msg = new Message();

//get senders $msg-&gt;getSenders();

//deliver transactional messages to your users via SMS or Whatsapp $msg-&gt;sendMessage($priority, $channel, $message, $destination\_no, $sender\_id);

//register sender id/ request sender id $msg-&gt;registerSenderId($sender\_id);

//get message status $msg-&gt;messageStatus($message\_id);

//send otp $msg-&gt;sendOTP($sender\_id, $mobile\_no, $channel);

//validate otp $msg-&gt;validateOTP($code, $reference\_id);

Full Code

require\_once **DIR** . '/vendor/autoload.php';

use muyiwa\\dojah\\Message;

$msg = new Message();

$msg-&gt;setBaseUrl(""); //assign a base url

$msg-&gt;setSecretKey("test\_sk\_hqnCg9JOYcIEeJN2QVMFIkiNU"); //set authorization secret Key

$msg-&gt;setAppId("5fc9fd6eb8c8e4003e08df8b"); //set app id

//get senders $msg-&gt;getSenders();

//deliver transactional messages to your users via SMS or Whatsapp $msg-&gt;sendMessage($priority, $channel, $message, $destination\_no, $sender\_id);

//register sender id/ request sender id $msg-&gt;registerSenderId($sender\_id);

//get message status $msg-&gt;messageStatus($message\_id);

//send otp $msg-&gt;sendOTP($sender\_id, $mobile\_no, $channel);

//validate otp $msg-&gt;validateOTP($code, $reference\_id);

###  Health Score

32

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~18 days

Recently: every ~60 days

Total

19

Last Release

1607d ago

Major Versions

v1.8.0 → v2.0.02021-02-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/e62ec3f71e927c148180b5f2d221b12add63e32a611284a883eb5ff57d7ec563?d=identicon)[SammyWright-King](/maintainers/SammyWright-King)

---

Top Contributors

[![SammyWright-King](https://avatars.githubusercontent.com/u/35971221?v=4)](https://github.com/SammyWright-King "SammyWright-King (8 commits)")[![Thobatech31](https://avatars.githubusercontent.com/u/28505327?v=4)](https://github.com/Thobatech31 "Thobatech31 (2 commits)")

### Embed Badge

![Health badge](/badges/muyiwa-dojah/health.svg)

```
[![Health](https://phpackages.com/badges/muyiwa-dojah/health.svg)](https://phpackages.com/packages/muyiwa-dojah)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
