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

ActiveLibrary[API Development](/categories/api)

szunisoft/laravel-mnb
=====================

Laravel MNB (Magyar Nemzeti Bank)

v2.0.1(6y ago)4383↓75%4[2 issues](https://github.com/SzuniSOFT/laravel-mnb/issues)[1 PRs](https://github.com/SzuniSOFT/laravel-mnb/pulls)MITPHPPHP ^7.1.3CI failing

Since Aug 2Pushed 4y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (6)Versions (6)Used By (0)

Laravel-MNB
===========

[](#laravel-mnb)

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

[](#requirements)

Package requires Soap and version 7.1 of PHP or higher.

Know-how
--------

[](#know-how)

This package was built on top of this [MNB package](https://github.com/SzuniSOFT/php-mnb). Please check out for corresponding documentations.

Install
-------

[](#install)

```
composer require szunisoft/laravel-mnb
```

Configuration
-------------

[](#configuration)

### Export

[](#export)

```
php artisan vendor:publish --provider="SzuniSoft\Mnb\Laravel\MnbServiceProvider" --tag="config"
```

### config/mnb-exchange.php

[](#configmnb-exchangephp)

```
    /*
     * Wsdl file location.
     * */
    'wsdl' => env('MNB_SOAP_WSDL', 'http://www.mnb.hu/arfolyamok.asmx?wsdl'),

    'cache' => [

        /*
         * Desired cache driver for service.
         * */
        'store' => env('MNB_CACHE_DRIVER', 'file'),

        /*
         * Minutes the cached currencies will be held for.
         * Default: 24hrs (1440)
         * */
        'minutes' => env('MNB_CACHE_MINUTES', 1440),
    ]
```

Usage
-----

[](#usage)

### Access via facade

[](#access-via-facade)

```
use SzuniSoft\Mnb\Laravel\Facade\Mnb

$currency = Mnb::currentExchangeRate('EUR');
```

### Resolve by application container

[](#resolve-by-application-container)

```
$currency = app(\SzuniSoft\Mnb\Laravel\Client::class)->currentExchangeRate('EUR');
```

### Access refresh date by reference

[](#access-refresh-date-by-reference)

You can check the feed date by passing a $date variable to some methods. These methods will make variable to be a Carbon instance.

```
Mnb::exchangeRates($date);
$date->isToday();
```

### Available methods

[](#available-methods)

#### Won't use cache

[](#wont-use-cache)

These methods won't use and update cache.

- currentExchangeRate($code, &amp;$date = null): Currency
- currentExchangeRates(&amp;$date = null): array of Currency

#### Will use cache

[](#will-use-cache)

These methods will use cache.

- exchangeRate($code, &amp;$date = null): single Currency
- exchangeRates(&amp;$date = null): array of currencies
- currencies(): array of strings (each is currency code)
- hasCurrency($code): bool

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

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

Total

5

Last Release

2240d ago

Major Versions

v1.0.1 → v2.0.02020-03-24

### 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 (6 commits)")

---

Tags

laravelcurrencypackageBankRateexchangemagyarmnbnemzeti

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162145.5k1](/packages/joisarjignesh-bigbluebutton)[joggapp/laravel-aws-sns

Laravel package for the SNS events by AWS

3171.8k](/packages/joggapp-laravel-aws-sns)[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)[nikolag/laravel-square

Square API integration with Laravel built on nikolag/core

3827.3k](/packages/nikolag-laravel-square)

PHPackages © 2026

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