Skip to content

maksa988/monobank-api

Repository files navigation

Monobank API Client

Latest Stable Version Build Status StyleCI Total Downloads License

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

PHP >= 5.6.4

Installation

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

Usage

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

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please send me an email at maksa988ua@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages