Skip to content

iCasa/exchange-rates-cbrf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Class ExchangeRatesCBRF

Requirements

  1. PHP 5 or greater
  2. SOAP and SimpleXML

Using

Examples of using ExchangeRatesCBRF Class to get exchange rates of the Central Bank of Russia

Example 1
Get exchange rate of Ukrainian Hryvnia (Alphabetic currency code - UAH) on 25.05.2015
<?php
require_once("ExchangeRatesCBRF.php");
$rates = new ExchangeRatesCBRF("2015-05-25");
echo $rates->GetRate("UAH");

Example 2
Get cross-rate of the US Dollar to Euro on 26.06.2015
<?php
require_once("ExchangeRatesCBRF.php");
$rates = new ExchangeRatesCBRF("2015-06-26");
echo $rates->GetCrossRate("EUR", "USD");

Example 3
Get exchange rates of the Central Bank of Russia on 27.07.2015
<?php
require_once("ExchangeRatesCBRF.php");
$rates = new ExchangeRatesCBRF("2015-07-27");
echo $rates->GetRates();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%