PHP code example of thalidzhokov / exchange-rates-cbrf
1. Go to this page and download the library: Download thalidzhokov/exchange-rates-cbrf 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/ */
thalidzhokov / exchange-rates-cbrf example snippets
$rates = new ExchangeRatesCBRF("2015-05-25");
echo $rates->GetRate("UAH");
$rates = new ExchangeRatesCBRF("2015-06-26");
echo $rates->GetCrossRate("EUR", "USD");
$rates = new ExchangeRatesCBRF("2015-07-27");
echo $rates->GetRates();