2017 © Pedro Peláez
 

library exchange-rates-cbrf

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

image

thalidzhokov/exchange-rates-cbrf

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

  • Monday, May 28, 2018
  • by thalidzhokov
  • Repository
  • 2 Watchers
  • 3 Stars
  • 67 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 4 Versions
  • 16 % Grown

The README.md

PHP Class ExchangeRatesCBRF

Requirements

  1. PHP 5 or greater
  2. SOAP and SimpleXML

Installation

Install via Composer, (*1)

composer require thalidzhokov/exchange-rates-cbrf

OR include ExchangeRatesCBRF.php in your PHP code, (*2)

require_once("ExchangeRatesCBRF.php");

Usage

Examples of using ExchangeRatesCBRF Class to get exchange rates of the Central Bank of Russia, (*3)

Example 1 \ Get exchange rate of Ukrainian Hryvnia (Alphabetic currency code - UAH) on 25.05.2015, (*4)

$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, (*5)

$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, (*6)

$rates = new ExchangeRatesCBRF("2015-07-27");
echo $rates->GetRates();

The Versions

28/05 2018

dev-master

9999999-dev

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

  Sources   Download

GNU General Public License v3.0 GPL-3.0-or-later

The Requires

  • php ^5.0 || ^7.0
  • ext-soap *
  • ext-simplexml *

 

by Aleksey Vaganov
by Albert Thalidzhokov

currencies exchange rates cbr cbrf central bank of russia

28/05 2018

2.1.2

2.1.2.0

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

  Sources   Download

GPL-3.0-or-later

The Requires

  • php ^5.0 || ^7.0
  • ext-soap *
  • ext-simplexml *

 

by Aleksey Vaganov
by Albert Thalidzhokov

currencies exchange rates cbr cbrf central bank of russia

26/10 2017

2.1.1

2.1.1.0

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

  Sources   Download

GNU General Public License v3.0

The Requires

  • php ^5.0 || ^7.0
  • ext-soap *
  • ext-simplexml *

 

by Aleksey Vaganov
by Albert Thalidzhokov

currencies exchange rates cbr cbrf central bank of russia

23/07 2017

2.1.0

2.1.0.0

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

  Sources   Download

GNU General Public License v3.0

The Requires

  • php ^5.0 || ^7.0
  • ext-soap *
  • ext-simplexml *

 

by Aleksey Vaganov
by Albert Thalidzhokov

currencies exchange rates cbr cbrf central bank of russia