iillexial / php-monobank-api
PHP library for Monobank API
Installs: 3 682
Dependents: 1
Suggesters: 0
Security: 0
Stars: 12
Watchers: 2
Forks: 6
Open Issues: 3
Type:project
Requires
- php: >=7.4
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: ^7.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpstan/phpstan: ^0.12
- phpunit/phpunit: ^9.4
- symfony/var-dumper: ^5.1
This package is not auto-updated.
Last update: 2025-03-31 05:06:17 UTC
README
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.