PHPackages                             ajur-media/ajur.currency - 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. ajur-media/ajur.currency

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

ajur-media/ajur.currency
========================

AJUR Media Steamboat Currency Toolkit

2.0.0(1y ago)0578MITPHPPHP ^8.2

Since Jun 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ajur-media/ajur.currency)[ Packagist](https://packagist.org/packages/ajur-media/ajur.currency)[ RSS](/packages/ajur-media-ajurcurrency/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (3)Versions (10)Used By (0)

AJUR Media Steamboat Currency Toolkit
=====================================

[](#ajur-media-steamboat-currency-toolkit)

Методы
------

[](#методы)

- `Currency::init($options = [], $logger = null)` - инициализирует класс, оверрайдит опции новыми значениями. `$logger` - инстанс логгера (например, `AppLogger::scope()`).
    Список опций:
    - `locale` - локаль, используемая для форматирования денежного номинала, по умолчанию (`ru_RU`)
    - `out_format` - формат вывода стоимости валюты, по умолчанию `%01.2f` (смотри форматы `sprintf()`)
- `Currency::selectCurrencySet([])` - загружает данные из ЦБР и выбирает из них валюты, символьные коды которых переданы в параметре. Важно: коды передаются в верхнем регистре, например `['USD', 'EUR']`.
- `Currency::getPrices()` - получаем данные о валютах в полной форме (код, название, стоимость, номинал, исходное значение стоимости, переданное банком)
- `Currency::getPricesCompact()` - получаем компактные данные вида { "&lt;код валюты&gt;": &lt;стоимость&gt;, ... }
- `Currency::storeFile()` - сохраняет загруженные валюты в файле
- `Currency::loadFile()` - загружает данные по валюте из файла и форматирует их в формат "XX.YY"

Внимание, код валюты **везде** в верхнем регистре. Это надо учитывать при отображении данных.

HOW TO USE?
-----------

[](#how-to-use)

### Получение данных (в cron)

[](#получение-данных-в-cron)

```
use \AJUR\Toolkit\Currency;

Currency::selectCurrencySet([]);

Currency::storeFile('data.json');

```

### Загрузка данных из файла (в движке)

[](#загрузка-данных-из-файла-в-движке)

```
use \AJUR\Toolkit\Currency;
...
$currency = Currency::loadFile(getenv('STORAGE.CURRENCY'), \Arris\AppLogger::scope('currency'));

```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance46

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity74

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 ~228 days

Recently: every ~361 days

Total

9

Last Release

411d ago

Major Versions

0.9 → 1.02020-06-23

1.99.0 → 2.0.02025-06-26

PHP version history (2 changes)1.99.0PHP ^7.4 | 8.\*

2.0.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2164874?v=4)[Karel Wintersky](/maintainers/KarelWintersky)[@KarelWintersky](https://github.com/KarelWintersky)

---

Top Contributors

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

###  Code Quality

Static AnalysisRector

### Embed Badge

![Health badge](/badges/ajur-media-ajurcurrency/health.svg)

```
[![Health](https://phpackages.com/badges/ajur-media-ajurcurrency/health.svg)](https://phpackages.com/packages/ajur-media-ajurcurrency)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

568591.1k62](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k51](/packages/civicrm-civicrm-core)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.4M233](/packages/illuminate-broadcasting)[logiscape/mcp-sdk-php

Model Context Protocol SDK for PHP

367137.2k15](/packages/logiscape-mcp-sdk-php)[typo3/cms-redirects

TYPO3 CMS Redirects - Create manual redirects, list existing redirects and automatically createredirects on slug changes.

167.6M84](/packages/typo3-cms-redirects)

PHPackages © 2026

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