This package provides an expressive and convenient way to interact with the Mono API.
Please note that the Mono API is not currently in private beta, this package is a pre-lease and therefore may not be stable enough for production. Use at your discretion!
We will continue to update this package as new features are being added to the Mono API.
You can install the package via composer:
composer require digikraaft/mono-php
All APIs documented in Mono's API Reference are currently supported by this package.
Before using any of the endpoints, you will have to authenticate the current account
with the endpoint account/auth
:
<?php
include_once('vendor/autoload.php');
use Digikraaft\Mono\Mono;
Mono::setSecretKey('TEST_1234abcd');
$codeFromMonoConnect = "5eadinitaewqwuis";
$account = Account::authenticate($codeFromMonoConnect);
$accountId = $account->data->id;
A list of the available methods are documented below:
authenticate(string $codeFromConnect) : Array|Object
bvnLookup($params = null) : Array|Object
details(string $accountId) : Array|Object
fetchStatement(string $accountId, array $filters) : Array|Object
identity(string $accountId) : Array|Object
income(string $accountId) : Array|Object
listTransactions(string $accountId, array $filters) : Array|Object
pollStatementPdfStatus(string $accountId, string $jobId) : Array|Object
reAuthorise(string $accountId, ?array $params = null) : Array|Object
sync(string $accountId, ?array $params = null) : Array|Object
unlink(string $accountId, ?array $params = null) : Array|Object
getSecretKey(): string
setSecretKey(string $secretKey)
coverage() : Array|Object
initiate(array $params) : Array|Object
onetimeDebitStatus(string $paymentId) : Array|Object
recurringDebitStatus(string $paymentId) : Array|Object
create(array $params) : Array|Object
delete(string $paymentId) : Array|Object
list(string $paymentId) : Array|Object
update(string $paymentId, array $params) : Array|Object
balance() : Array|Object
This package returns the exact response from the Mono API but as the stdClass
type.
composer test
Check here for more awesome free stuff!
Please see CHANGELOG for more information on what has changed recently.
Contributions are welcome! Please see CONTRIBUTING for details.
If you discover any security related issues, please email hello@digikraaft.ng instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.