maksa988/monobank-api

PHP client for Mobobank API

v1.2.0 2022-09-26 08:39 UTC

This package is auto-updated.

Last update: 2024-10-26 13:04:05 UTC


README

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.