PHPackages                             romash1408/average-rate - 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. romash1408/average-rate

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

romash1408/average-rate
=======================

Calculate average exchange rate of RUB on a specified date

00PHP

Since Dec 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/romash1408/average-rate)[ Packagist](https://packagist.org/packages/romash1408/average-rate)[ RSS](/packages/romash1408-average-rate/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Average Rate
============

[](#average-rate)

Description
-----------

[](#description)

Test task for Movavi.

Class `AverageRate` gets exchange rate for EUR or USD on porposed date from  and  and returns its average value

Install
-------

[](#install)

Via Composer

```
$ composer require romash1408/average-rate
```

Example
-------

[](#example)

```
require "vendor/autoload.php";

use Romash1408\AverageRate;
use Romash1408\Currency;

$averageRate = new AverageRate();
$date = new DateTime("2007-01-23");
echo $average->get(Currency::$USD, $date); // 26.5214
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14085271?v=4)[Roman Dubinin](/maintainers/romash1408)[@romash1408](https://github.com/romash1408)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/romash1408-average-rate/health.svg)

```
[![Health](https://phpackages.com/badges/romash1408-average-rate/health.svg)](https://phpackages.com/packages/romash1408-average-rate)
```

###  Alternatives

[jaocero/filachat

FilaChat is a plugin for integrating real-time customer support chat into your application. Provides tools for both customer and agent chat interfaces, with features for managing and maintaining chat conversations.

1843.8k](/packages/jaocero-filachat)[asinfotrack/yii2-audittrail

Yii2-audittrail is a behavior and a set of widgets to track all modifications performed on a model

1627.3k](/packages/asinfotrack-yii2-audittrail)[kakuilan/php-helper

k`s php helper/library/utils

304.9k3](/packages/kakuilan-php-helper)[asinfotrack/yii2-toolbox

Yii2-Toolbox is a collection of useful helpers, widgets etc. extending the basic functionality of Yii2

1130.8k5](/packages/asinfotrack-yii2-toolbox)

PHPackages © 2026

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