PHP client for MonoBank API services (https://api.monobank.ua/docs/)
- List of monobank currency rates
- Information about the client and the list of his accounts
- Get statement
Monobank API for PHP is installed via Composer.
For most uses, you will need to require maksa988/monobank-api
and an individual gateway:
composer require maksa988/monobank-api
use Maksa988\MonobankAPI\MonobankAPI;
$api = new MonobankAPI('YOUR_TOKEN');
/*
* Get currencies
*
* Returns array of \Maksa988\MonobankAPI\DTO\CurrencyInfo instainces
*/
$api->currency();
/*
* Get information about client
*
* Returns instance of \Maksa988\MonobankAPI\DTO\UserInfo
*/
$api->personalInfo();
/*
* Get personal statement
*
* Returns instance of \Maksa988\MonobankAPI\DTO\StatementItems
*/
$api->personalStatement(\DateTime $from, $account = 0, \DateTime $to = null);
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please send me an email at maksa988ua@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.