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. szunisoft/mnb

ActiveLibrary

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

MNB (Magyar Nemzeti Bank) SOAP Client

v1.0.1(6y ago)61.6k↓75%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 3d 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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

2243d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bea64d6c8d626db499bd4268c8e73a37889b3954ca0b9b4eaaa736cb63b800dd?d=identicon)[sykorax](/maintainers/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

Exchange rates library for PHP

1.3k6.4M16](/packages/florianv-swap)[florianv/laravel-swap

Currency exchange rates library for Laravel and Lumen

3342.0M2](/packages/florianv-laravel-swap)[florianv/exchanger

Currency exchange rates framework for PHP

1874.7M15](/packages/florianv-exchanger)[florianv/swap-bundle

Integrates the Swap library with Symfony

62416.1k1](/packages/florianv-swap-bundle)[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)

PHPackages © 2026

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