PHPackages                             rrd108/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. [API Development](/categories/api)
4. /
5. rrd108/mnb

ActiveLibrary[API Development](/categories/api)

rrd108/mnb
==========

PHP 8 version of szunisoft/mnb MNB (Magyar Nemzeti Bank) SOAP Client

1.1.0(4y ago)01.4k↓50%MITPHPPHP &gt;=8.0

Since Aug 1Pushed 4y agoCompare

[ Source](https://github.com/rrd108/php-mnb)[ Packagist](https://packagist.org/packages/rrd108/mnb)[ RSS](/packages/rrd108-mnb/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (5)Used By (0)

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

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~420 days

Total

4

Last Release

1587d ago

PHP version history (2 changes)1.0.x-devPHP ^7.1.3

1.1.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f115ed63db719bb70b5f9f74a077e5dba1e3962d394f63bde914de8f64171d8?d=identicon)[rrd](/maintainers/rrd)

---

Top Contributors

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

---

Tags

currencyBankRateexchangemagyarmnbnemzeti

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[stichoza/nbg-currency

National Bank of Georgia (NBG) currency service API wrapper

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

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

1343.3k1](/packages/maciej-sz-nbp-php)[florianv/swap-bundle

Integrates the Swap library with Symfony

62416.1k1](/packages/florianv-swap-bundle)

PHPackages © 2026

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