PHPackages                             icetee/mnb-exchange-rate - 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. icetee/mnb-exchange-rate

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

icetee/mnb-exchange-rate
========================

Minimal SOAP API wrapper for get exchanges rate from MNB

v2.0.1(7y ago)810.7k↓50%2MITPHPPHP &gt;=5.6

Since Oct 25Pushed 7y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

MNB - Exchange Rate
===================

[](#mnb---exchange-rate)

[![Build Status](https://camo.githubusercontent.com/0d35dc917a60b1a3121254741792423d5c1874ee6ff0b439572a3718f2078dd8/68747470733a2f2f64726f6e652e7765626d6f6e6b65792e68752f6170692f6261646765732f6963657465652f6d6e622d65786368616e67652d726174652f7374617475732e737667)](https://drone.webmonkey.hu/icetee/mnb-exchange-rate)

### Load with composer

[](#load-with-composer)

The simplest solution is to call the package when using a composer. This cli command, install the package.

```
$ composer require icetee/mnb-exchange-rate

```

### Usage

[](#usage)

**Create instance:**

```
$exchange_rate = new \Icetee\MNB\ExchangeRate();

```

**Get current exchange entity by currency:**

```
$rate_entity = $exchange_rate->getCurrentExchangeRate('USD');

```

The properties of `RateEntity`:

```
object(Icetee\MNB\RateEntity)#40 (4) {
  ["date":protected]=>
  string(10) "2018-10-24"
  ["unit":protected]=>
  string(1) "1"
  ["value":protected]=>

  string(9) "282,91000"
  ["currency":protected]=>
  string(3) "USD"
}

```

**Get all current exchange entities:**

```
$rate_entity_collection = $exchange_rate->getExchangeRates();

```

The properties of `RateEntityCollection`:

```
object(Icetee\MNB\RateEntityCollection)#4 (1) {
  ["collection":"Icetee\MNB\RateEntityCollection":private]=>
  array(34) {
    [0]=>
    object(Icetee\MNB\RateEntity)#9 (4) {
      ["date":protected]=>

      string(10) "2018-10-24"
      ["unit":protected]=>
      string(1) "1"
      ["value":protected]=>
      string(9) "200,36000"
      ["currency":protected]=>
      string(3) "AUD"
    }

    ...
  }
}

```

**Get filtered exchange entities:**

```
$rate_entity_collection = $exchange_rate->getExchangeRates('1992-11-11', '1992-11-13', 'USD,AUD');

```

**Get filtered units:**

```
$units = $exchange_rate->getCurrencyUnits('USD,AUD');

```

### ExchangeRate functions

[](#exchangerate-functions)

Function nameParameterDefaultReturngetCurrentExchangeRate$currencyEURRateEntity / NullgetCurrentExchangeRates--RateEntityCollectiongetCurrencies--ArraygetDateInterval--ObjectgetExchangeRates(optional) $startDate, $endDate, $currencyNames-Array / RateEntityCollectiongetCurrencyUnits(optional) $currencyNames-Associative ArraygetInfo--Object### RateEntity methods

[](#rateentity-methods)

Function nameParameterReturngetDate-stringsetDate$dateRateEntitygetUnit-intsetUnit$unitRateEntitygetCurrency-stringsetCurrency$currencyRateEntitygetValue-floatsetValue$valueRateEntity### RateEntityCollection methods

[](#rateentitycollection-methods)

Function nameParameterReturnaddEntityRateEntity $entity-removeEntityRateEntity $entity-findEntityRateEntity $entityRateEntityfindEntityByCurrency$currencyRateEntity / NullgetCollection-Array### Reference

[](#reference)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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 ~1 days

Total

2

Last Release

2754d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1855340?v=4)[Tamás András Horváth](/maintainers/icetee)[@icetee](https://github.com/icetee)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/icetee-mnb-exchange-rate/health.svg)

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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