PHPackages                             szunisoft/mnb - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. szunisoft/mnb

ActiveLibrary[HTTP &amp; Networking](/categories/http)

szunisoft/mnb
=============

MNB (Magyar Nemzeti Bank) SOAP Client

v1.0.1(6y ago)61.6k↓80%3[1 PRs](https://github.com/SzuniSOFT/php-mnb/pulls)1MITPHPPHP ^7.1.3CI failing

Since Aug 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/SzuniSOFT/php-mnb)[ Packagist](https://packagist.org/packages/szunisoft/mnb)[ RSS](/packages/szunisoft-mnb/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (1)

PHP MNB (Magyar Nemzeti Bank)
=============================

[](#php-mnb-magyar-nemzeti-bank)

Requirements
------------

[](#requirements)

This package requires **SoapClient** and **PHP 7.1** or higher.

Note on behavior
----------------

[](#note-on-behavior)

MNB Soap client only supports HUF base currency. So the API will return with the well calculated exchange rates based on HUF.

Usage
=====

[](#usage)

Initialize
----------

[](#initialize)

```
require 'vendor/autoload.php';
$client = new \SzuniSoft\Mnb\Client();
```

Access list of currencies
-------------------------

[](#access-list-of-currencies)

Returns with string array. Each element is a currency code.

```
$currencies = $client->currencies(); // HUF, EUR, ...
```

Determine currency existence
----------------------------

[](#determine-currency-existence)

```
$client->hasCurrency('EUR'); // true
```

List of current currency exchange rates
---------------------------------------

[](#list-of-current-currency-exchange-rates)

Each element of the returned array will be an instance of ***SzuniSoft\\Mnb\\Model\\Currency***

```
$exchangeRates = $client->currenctExchangeRates($date);

$exchangeRates[0]->getCode(); // EUR
$exchangeRates[0]->getUnit(); // 1
$exchangeRates[0]->getAmount(); // 300
```

Obtain exchange rate for specific currency
------------------------------------------

[](#obtain-exchange-rate-for-specific-currency)

The returned value will be an instance of ***SzuniSoft\\Mnb\\Model\\Currency***

```
$currency = $client->currentExchangeRate('EUR');
```

SoapClient proxy
----------------

[](#soapclient-proxy)

Client has proxy method call which will invoke the desired method on the ***SoapClient*** directly.

```
$client->{'AnyMethodYouWishToInvoke'}();
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~301 days

Total

3

Last Release

2289d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5334912?v=4)[Forgács Bence](/maintainers/sykorax)[@sykorax](https://github.com/sykorax)

---

Top Contributors

[![sykorax](https://avatars.githubusercontent.com/u/5334912?v=4)](https://github.com/sykorax "sykorax (4 commits)")

---

Tags

currencyBankRateexchangemagyarmnbnemzeti

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/szunisoft-mnb/health.svg)

```
[![Health](https://phpackages.com/badges/szunisoft-mnb/health.svg)](https://phpackages.com/packages/szunisoft-mnb)
```

###  Alternatives

[florianv/swap-bundle

Drop-in Symfony bundle for currency conversion: configurable services, multi-provider exchange rates with fallback and caching.

63425.7k1](/packages/florianv-swap-bundle)[muffin/throttle

(API) Rate limiting requests in CakePHP

62304.8k](/packages/muffin-throttle)[rtheunissen/guzzle-rate-limiter

Guzzle 6 middleware used to delay requests dynamically

52179.4k1](/packages/rtheunissen-guzzle-rate-limiter)[stichoza/nbg-currency

National Bank of Georgia (NBG) currency service API wrapper

2925.4k1](/packages/stichoza-nbg-currency)[maciej-sz/nbp-php

API for accessing Polish National Bank (NBP - Narodowy Bank Polski) currency and commodities exchange rates

1445.5k1](/packages/maciej-sz-nbp-php)[rogervila/lumen-rate-limiting

 Lumen port of Laravel ThrottleRequests middleware

1664.9k1](/packages/rogervila-lumen-rate-limiting)

PHPackages © 2026

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