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 statements
- Set webhook
- PHP >=7.2
- ext-json
- ext-curl
Via Composer
$ composer require progjp/monobank-api
$client = new Client();
$monobank = new MonobankAPI($client, '<token>');
$response = $monobank->call(new StatementRequest((new StatementDTO())
->setAccount('test')
->setFrom((new \DateTime('first day of this month'))->getTimestamp())
->setTo((new \DateTime('last day of this month'))->getTimestamp())
));
$response = $monobank->call(new ClientInfoRequest());
$response = $monobank->call(new WebHookRequest($webHookUrl));
$response = $monobank->call(new WebHookRequest(''));
$client = new Client();
$monobank = new MonobankAPI($client);
$response = $monobank->call(new CurrencyRequest());
Just run:
$ composer test
The MIT License (MIT). Please see License File for more information.