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. sashalenz/monobank-api

ActiveLibrary

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

This is my package monobank-api

1.3.1(9mo ago)016[5 PRs](https://github.com/sashalenz/monobank-api/pulls)MITPHPPHP ^8.2CI passing

Since Jan 24Pushed 1mo 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 1mo ago

READMEChangelog (7)Dependencies (14)Versions (17)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

40

—

FairBetter than 88% of packages

Maintenance76

Regular maintenance activity

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.9% 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 ~34 days

Recently: every ~51 days

Total

7

Last Release

274d ago

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 (29 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

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[danestves/laravel-polar

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

7812.3k](/packages/danestves-laravel-polar)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

188.5k](/packages/tarfin-labs-event-machine)[basillangevin/laravel-data-json-schemas

Transforms Spatie Data objects into JSON Schemas with built-in validation

1312.2k1](/packages/basillangevin-laravel-data-json-schemas)[a2insights/filament-saas

Filament Saas for A2Insights

161.1k](/packages/a2insights-filament-saas)

PHPackages © 2026

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