Skip to content

ivaaaan/php-monobank-api

Repository files navigation

PHP library for Monobank API

Build Status Scrutinizer Code Quality

Requirements

  • PHP >=7.4
  • ext-json
  • ext-curl

Install

Via Composer

$ composer require iillexial/php-monobank-api

Usage

See examples for more.

Get statements

$monobank = new Monobank\Monobank('token');
$statements = $monobank->personal->getStatements('account_id', new DateTime());

Get client info

$monobank = new Monobank\Monobank('token');
$clientInfo = $monobank->personal->getClientInfo();

Set a webhook

$monobank = new Monobank\Monobank('token');
$clientInfo = $monobank->personal->setWebhook('url here');

Delete a webhook

$monobank = new Monobank\Monobank('token');
$clientInfo = $monobank->personal->deleteWebhook();

Get currency rates

$monobank = new Monobank\Monobank();
$rates = $monobank->bank->getCurrencyRates();

Testing

Just run:

$ composer test

License

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