PHP code example of szunisoft / mnb

1. Go to this page and download the library: Download szunisoft/mnb library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

szunisoft / mnb example snippets



$client = new \SzuniSoft\Mnb\Client();

$currencies = $client->currencies(); // HUF, EUR, ...

$client->hasCurrency('EUR'); // true

$exchangeRates = $client->currenctExchangeRates($date);

$exchangeRates[0]->getCode(); // EUR
$exchangeRates[0]->getUnit(); // 1
$exchangeRates[0]->getAmount(); // 300

$currency = $client->currentExchangeRate('EUR');

$client->{'AnyMethodYouWishToInvoke'}();