PHPackages                             ioncurly/cbr-converter - 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. ioncurly/cbr-converter

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

ioncurly/cbr-converter
======================

Simple CBR currency converter. Testing/studying purposes (used for packagist)

06PHP

Since Nov 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ionov-e/cbr-converter)[ Packagist](https://packagist.org/packages/ioncurly/cbr-converter)[ RSS](/packages/ioncurly-cbr-converter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Simple currency converter (CBR)
===============================

[](#simple-currency-converter-cbr)

Short description
-----------------

[](#short-description)

The whole point was to publish a library on packagist: It uses CBR's XML file with currency rates

This XML file (updated daily) is used: [https://www.cbr.ru/scripts/XML\_daily.asp](https://www.cbr.ru/scripts/XML_daily.asp)

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

[](#installation)

Run this command in your project

`composer require ioncurly/cbr-converter:dev-main`

Usage
-----

[](#usage)

`$exchange = new Exchange("USD", "UAH", 100);`

`echo $exchange->toDecimal();`

It would print some number like "**3,693.18**"

- First parameter: short abbreviation (3 letters) of currency being converted from;
- First parameter: short abbreviation (3 letters) of currency being converted to;
- Third parameter: amount of money to be converted

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

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/e45758d8572bb646e8980ae618a914a14113b07a3c5da72ecf2796aada32fe79?d=identicon)[ionov-e](/maintainers/ionov-e)

---

Top Contributors

[![ionov-e](https://avatars.githubusercontent.com/u/82158159?v=4)](https://github.com/ionov-e "ionov-e (4 commits)")

### Embed Badge

![Health badge](/badges/ioncurly-cbr-converter/health.svg)

```
[![Health](https://phpackages.com/badges/ioncurly-cbr-converter/health.svg)](https://phpackages.com/packages/ioncurly-cbr-converter)
```

###  Alternatives

[dazet/data-map

Library for mapping data structures.

2123.7k](/packages/dazet-data-map)

PHPackages © 2026

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