https://github.com/khandurdyiev/monobank-php-client
PHP Client for Monobank API
https://github.com/khandurdyiev/monobank-php-client
monobank monobank-api monobank-php-client php php-client
Last synced: about 1 month ago
JSON representation
PHP Client for Monobank API
- Host: GitHub
- URL: https://github.com/khandurdyiev/monobank-php-client
- Owner: khandurdyiev
- License: mit
- Created: 2021-02-10T23:06:17.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-12-07T19:08:03.000Z (about 3 years ago)
- Last Synced: 2025-12-04T01:45:33.924Z (about 1 month ago)
- Topics: monobank, monobank-api, monobank-php-client, php, php-client
- Language: PHP
- Homepage: https://api.monobank.ua/docs/
- Size: 24.4 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Monobank PHP Client
Monobank php client helps you to use [Monobank API](https://api.monobank.ua/docs/) easily.
## Installation
It's recommended that you use [Composer](https://getcomposer.org/) to install Monobank php client.
```bash
$ composer require khandurdyiev/monobank-php-client
```
## Important
*All money amounts in dime (according to Monobank API)*
## Basic Usage (Public Data)
```php
currency()->all();
foreach ($currencies as $currency) {
$currencyA = $currency->getCurrencyA(); // USD
$currencyB = $currency->getCurrencyB(); // UAH
$date = $currency->getDate(); // returns Carbon instance with date
// ...
}
```
## Usage with token (Private Data)
```php
clientInfo();
$name = $clientInfo->getName();
$accounts = $clientInfo->getAccounts()->all();
foreach ($accounts as $account) {
$balance = $account->getBalance(); // 123456
$creditLimit = $account->getCreditLimit(); // 654321
$currency = $account->getCurrency(); // UAH
// ...
}
// Get statements of concrete account
$from = Carbon::now()->subMonth();
$to = Carbon::now();
$statements = $mono->statements($from, $to, 'account_id')->all();
foreach ($statements as $statement) {
$amount = $statement->getAmount(); // 123456
$cashbackAmount = $statement->getCashbackAmount(); // 123456
$currency = $statement->getCurrency(); // UAH
// ...
}
```
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.