PHPackages                             tyryshkinm/exchange-rates - 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. [API Development](/categories/api)
4. /
5. tyryshkinm/exchange-rates

ActiveLibrary[API Development](/categories/api)

tyryshkinm/exchange-rates
=========================

PHP library to retrieve exchange rate from cbr.ru and rbc.ru services.

v1.0.1(5y ago)010PHPCI failing

Since Dec 9Pushed 5y agoCompare

[ Source](https://github.com/Tyryshkinm/exchange-rates)[ Packagist](https://packagist.org/packages/tyryshkinm/exchange-rates)[ RSS](/packages/tyryshkinm-exchange-rates/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

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

[](#installation)

```
$ composer require tyryshkinm/exchange-rates

```

Usage
-----

[](#usage)

```
use Tyryshkinm\ExchangeRates\ExchangeRates;
use Tyryshkinm\ExchangeRates\Factory\ProviderFactory;
use Tyryshkinm\ExchangeRates\Http\Client;

$currency = 'USD'; // USD and EUR are available only.
$date = new \DateTime();
$client = new Client();
$providerFactory = new ProviderFactory($client);
$exchangeRateModel = new ExchangeRates(...$providerFactory->getProviders());

// for adding your own provider
$myOwnProvider = new MyOwnProvider(); // need implement ProviderInterface
$exchangeRateModel->addProvider($myOwnProvider);

$averageRate = $exchangeRateModel->getAverageRate($currency, $date);
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~724 days

Total

2

Last Release

2035d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22634150?v=4)[Tyryshkinm](/maintainers/Tyryshkinm)[@tyryshkinm](https://github.com/tyryshkinm)

---

Top Contributors

[![tyryshkinm](https://avatars.githubusercontent.com/u/22634150?v=4)](https://github.com/tyryshkinm "tyryshkinm (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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