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 today

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 43% 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

1986d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6bf91b49285e451041e0908332b3d5fe0666c7da186a7e347dd3fa67e30562d1?d=identicon)[Tyryshkinm](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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