Download the PHP package digikraaft/mono-php without Composer
On this page you can find all versions of the php package digikraaft/mono-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download digikraaft/mono-php
More information about digikraaft/mono-php
Files in digikraaft/mono-php
Package mono-php
Short Description PHP Implementation of Mono API
License MIT
Homepage https://github.com/digikraaft/mono-php
Informations about the package mono-php
Convenient PHP wrapper to the Mono API
This package provides an expressive and convenient way to interact with the Mono API.
IMPORTANT NOTICE
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.
Installation
You can install the package via composer:
Usage
All APIs documented in Mono's API Reference are currently supported by this package.
Authentication
Before using any of the endpoints, you will have to authenticate the current account
with the endpoint account/auth
:
Available Methods
A list of the available methods are documented below:
Account
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
Mono
getSecretKey(): string
setSecretKey(string $secretKey)
coverage() : Array|Object
Payment
initiate(array $params) : Array|Object
onetimeDebitStatus(string $paymentId) : Array|Object
recurringDebitStatus(string $paymentId) : Array|Object
Plan
create(array $params) : Array|Object
delete(string $paymentId) : Array|Object
list(string $paymentId) : Array|Object
update(string $paymentId, array $params) : Array|Object
Wallet
balance() : Array|Object
This package returns the exact response from the Mono API but as the stdClass
type.
Testing
More Good Stuff
Check here for more awesome free stuff!
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Contributions are welcome! Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Tim Oladoyinbo
- All Contributors
License
The MIT License (MIT). Please see License File for more information.