PHPackages                             thalidzhokov/exchange-rates-cbrf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. thalidzhokov/exchange-rates-cbrf

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

thalidzhokov/exchange-rates-cbrf
================================

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

2.1.2(7y ago)102.7k5GPL-3.0-or-laterPHPPHP ^5.0 || ^7.0

Since Oct 25Pushed 7y ago2 watchersCompare

[ Source](https://github.com/thalidzhokov/exchange-rates-cbrf)[ Packagist](https://packagist.org/packages/thalidzhokov/exchange-rates-cbrf)[ RSS](/packages/thalidzhokov-exchange-rates-cbrf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

PHP Class ExchangeRatesCBRF
===========================

[](#php-class-exchangeratescbrf)

Requirements
------------

[](#requirements)

1. PHP 5 or greater
2. SOAP and SimpleXML

Installation
------------

[](#installation)

Install via Composer

```
composer require thalidzhokov/exchange-rates-cbrf
```

OR include *ExchangeRatesCBRF.php* in your PHP code

```
require_once("ExchangeRatesCBRF.php");
```

Usage
-----

[](#usage)

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

```
$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

```
$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

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

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~214 days

Total

2

Last Release

2906d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fefcd2b3607ddc8edba8665c1ff4562e181940447b33ebace65ba86a7466f030?d=identicon)[thalidzhokov](/maintainers/thalidzhokov)

---

Top Contributors

[![thalidzhokov](https://avatars.githubusercontent.com/u/5680364?v=4)](https://github.com/thalidzhokov "thalidzhokov (22 commits)")[![duzun](https://avatars.githubusercontent.com/u/321424?v=4)](https://github.com/duzun "duzun (2 commits)")

---

Tags

exchange ratescurrenciescbrcbrfCentral Bank of Russia

### Embed Badge

![Health badge](/badges/thalidzhokov-exchange-rates-cbrf/health.svg)

```
[![Health](https://phpackages.com/badges/thalidzhokov-exchange-rates-cbrf/health.svg)](https://phpackages.com/packages/thalidzhokov-exchange-rates-cbrf)
```

###  Alternatives

[rinvex/countries

Rinvex Countries is a simple and lightweight package for retrieving country details with flexibility. A whole bunch of data including name, demonym, capital, iso codes, dialling codes, geo data, currencies, flags, emoji, and other attributes for all 250 countries worldwide at your fingertips.

1.7k7.4M48](/packages/rinvex-countries)[pragmarx/countries

PHP Countries and Currencies

1.9k3.3M18](/packages/pragmarx-countries)[florianv/swap

Exchange rates library for PHP

1.3k6.4M16](/packages/florianv-swap)[payum/iso4217

ISO 4217 PHP Library

16312.1M5](/packages/payum-iso4217)[florianv/laravel-swap

Currency exchange rates library for Laravel and Lumen

3342.0M2](/packages/florianv-laravel-swap)[pragmarx/countries-laravel

Countries for Laravel

1471.1M2](/packages/pragmarx-countries-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
