PHPackages                             sashalenz/monobank-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. sashalenz/monobank-api

ActiveLibrary[API Development](/categories/api)

sashalenz/monobank-api
======================

This is my package monobank-api

2.1.0(2w ago)0291MITPHPPHP ^8.2CI passing

Since Jan 24Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/sashalenz/monobank-api)[ Packagist](https://packagist.org/packages/sashalenz/monobank-api)[ Docs](https://github.com/sashalenz/monobank-api)[ GitHub Sponsors](https://github.com/sashalenz)[ RSS](/packages/sashalenz-monobank-api/feed)WikiDiscussions main Synced today

READMEChangelog (7)Dependencies (66)Versions (25)Used By (0)

Monobank API client for PHP
===========================

[](#monobank-api-client-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e5720a135a54e5578ed791284a40277b92cb2853d9b4e28abe1fdfb4c0322cbf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73617368616c656e7a2f6d6f6e6f62616e6b2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sashalenz/monobank-api)[![GitHub Tests Action Status](https://camo.githubusercontent.com/b266c77c07324db05726e7fb8a3eee8af2e83db8f3c725689c7e96c46c6e5068/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73617368616c656e7a2f6d6f6e6f62616e6b2d6170692f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/sashalenz/monobank-api/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/7dfb5dd22e89073d5cc02be6849bc16b29920a8238156038776fb47eb1a13283/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73617368616c656e7a2f6d6f6e6f62616e6b2d6170692f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/sashalenz/monobank-api/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/bdd8dd4b65ae72d844f80235e5422a173738e00aaf959f0476c1bf927d3e8415/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73617368616c656e7a2f6d6f6e6f62616e6b2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sashalenz/monobank-api)

A lightweight and expressive PHP wrapper for the [Monobank API](https://api.monobank.ua/). It provides simple methods for accessing public banking information and personal account data.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require sashalenz/monobank-api
```

You can publish the config file with:

```
php artisan vendor:publish --tag="monobank-api-config"
```

This is the contents of the published config file:

```
return [
];
```

Usage
-----

[](#usage)

This package provides helpers for all Monobank API requests:

- `MonobankApi::bank()->currency()` – get current currency exchange rates.
- `MonobankApi::personal()->clientInfo()` – retrieve information about accounts and cards.
- `MonobankApi::personal()->webhook($url)` – register a webhook URL for transaction updates.
- `MonobankApi::personal()->statement($account, $dateFrom, $dateTo = null)` – fetch a statement for a specific account and period.

### Examples

[](#examples)

#### Currency rates

[](#currency-rates)

Retrieve public exchange rates without authentication.

```
use Sashalenz\MonobankApi\MonobankApi;

$rates = MonobankApi::bank()->currency();

foreach ($rates as $rate) {
    echo $rate->currencyCodeA . ' => ' . $rate->rateBuy . PHP_EOL;
}
```

#### Client information

[](#client-information)

Get information about your accounts and cards.

```
$info = MonobankApi::personal()->token($token)->clientInfo();
```

#### Register webhook

[](#register-webhook)

Configure a webhook to receive transaction updates.

```
MonobankApi::personal()->token($token)->webhook('https://example.com/monobank');
```

#### Account statement

[](#account-statement)

Fetch the statement for an account within a given period.

```
$statement = MonobankApi::personal()
    ->token($token)
    ->statement($accountId, $dateFrom, $dateTo);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [sashalenz](https://github.com/sashalenz)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance88

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 68.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~42 days

Recently: every ~11 days

Total

13

Last Release

20d ago

Major Versions

1.3.1 → 2.0.02026-04-02

PHP version history (2 changes)1.0.0PHP ^8.4

1.2.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13202688?v=4)[Oleksandr Petrovskyi](/maintainers/sashalenz)[@sashalenz](https://github.com/sashalenz)

---

Top Contributors

[![sashalenz](https://avatars.githubusercontent.com/u/13202688?v=4)](https://github.com/sashalenz "sashalenz (32 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")[![claude](https://avatars.githubusercontent.com/u/81847?v=4)](https://github.com/claude "claude (4 commits)")

---

Tags

laravelsashalenzmonobank-api

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/sashalenz-monobank-api/health.svg)

```
[![Health](https://phpackages.com/badges/sashalenz-monobank-api/health.svg)](https://phpackages.com/packages/sashalenz-monobank-api)
```

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[danestves/laravel-polar

A package to easily integrate your Laravel application with Polar.sh

8120.4k](/packages/danestves-laravel-polar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
