PHPackages                             oliavm/course - 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. oliavm/course

ActiveLibrary

oliavm/course
=============

Average course of valute

04PHP

Since Nov 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/OliaVM/course)[ Packagist](https://packagist.org/packages/oliavm/course)[ RSS](/packages/oliavm-course/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

course
======

[](#course)

Есть 2 сервиса, возвращающие курсы валют:

[https://cash.rbc.ru/cash/json/converter\_currency\_rate/?currency\_from=USD&amp;currency\_to=RUR&amp;source=cbrf&amp;sum=1&amp;date=](https://cash.rbc.ru/cash/json/converter_currency_rate/?currency_from=USD&currency_to=RUR&source=cbrf&sum=1&date=)Вычисляется средний курс евро и доллара по этим двум сервисам на передаваемую дату. При недоступности одного из сервисов генерируется исключение.

install composer require oliavm/course:dev-master

usage use oliavm\\Course\\Course; $course = new Course(); $course-&gt;getAverageCourse($day); $day - date in format d-m-Y ("03-11-2019");

Example use oliavm\\Course\\Course; $course = new Course(); $course-&gt;getAverageCourse("07-10-2019");
=======================================================================================================

[](#exampleuse-oliavmcoursecoursecourse--new-coursecourse-getaveragecourse07-10-2019)

average valute course

> > > > > > > 8d0f56d27e34fc53612dfaf3d192b75e7d7a35e8

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

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://www.gravatar.com/avatar/9c957c52ac572fc338452e403736f42b7d8e466fe70e0bc6228200e99ce93363?d=identicon)[OliaVM](/maintainers/OliaVM)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/oliavm-course/health.svg)

```
[![Health](https://phpackages.com/badges/oliavm-course/health.svg)](https://phpackages.com/packages/oliavm-course)
```

PHPackages © 2026

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