peso / mnb-service
Hungarian National Bank data provider for Peso
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/peso/mnb-service
Requires
- php: ^8.2
- ext-soap: *
- arokettu/date: ^2.4
- arokettu/system-clock: ^2.0
- peso/core: ^1.1
- psr/simple-cache: ^1 || ^2 || ^3
- sabre/xml: ^4.0
Requires (Dev)
- arokettu/clock: ^2.7
- phpunit/phpunit: ^11.5.44
- psy/psysh: *
- sandfox.dev/code-standard: ^1.2025.09.17
- squizlabs/php_codesniffer: *
- symfony/cache: ^7.3
- vimeo/psalm: ^6.12
This package is auto-updated.
Last update: 2025-11-27 20:46:24 UTC
README
This is an exchange data provider for Peso that retrieves data from the Hungarian National Bank (Magyar Nemzeti Bank).
Installation
composer require peso/mnb-service
Install the service with all recommended dependencies:
composer install peso/mnb-service symfony/cache
This library also requires soap extension.
Example
<?php use Peso\Peso\CurrencyConverter; use Peso\Services\HungarianNationalBankService; use Symfony\Component\Cache\Adapter\FilesystemAdapter; use Symfony\Component\Cache\Psr16Cache; require __DIR__ . '/vendor/autoload.php'; $cache = new Psr16Cache(new FilesystemAdapter(directory: __DIR__ . '/cache')); $service = new HungarianNationalBankService($cache); $converter = new CurrencyConverter($service);
Documentation
Read the full documentation here: https://phpeso.org/v1.x/services/mnb.html
Support
Please file issues on our main repo at GitHub: https://github.com/phpeso/mnb-service/issues
License
The library is available as open source under the terms of the MIT License.