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

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

rixafy/currency
===============

Currency CRUD with basic functions (listing, converting, updating, etc)

v2.0.2(4y ago)01.1k1MITPHP

Since Sep 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/rixafy/Currency)[ Packagist](https://packagist.org/packages/rixafy/currency)[ RSS](/packages/rixafy-currency/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (1)

Currency
========

[](#currency)

💱 CRUD model in PHP using Doctrine ORM

Installation
============

[](#installation)

```
composer require rixafy/currency

```

Example usage
=============

[](#example-usage)

Basic examples for working with extension, you need to register services to DI or use [this integration to nette framework](https://github.com/Archette/Currency)

Converting
----------

[](#converting)

```
$eur = $this->currencyFacade->getByCode('EUR'); // returns Currency instance
$usd = $this->currencyFacade->getByCode('USD'); // returns Currency instance

$eur->convertFrom($usd, 100); // converts 100 USD to EUR, returns float
$eur->convertTo($usd, 100); // converts 100 EUR to USD, returns float
```

Formatting
----------

[](#formatting)

```
echo $this->currencyFacade->getByCode('USD')->formatToNumber(45.54); // returns 45.54
echo $this->currencyFacade->getByCode('EUR')->formatToNumber(45.54); // returns 45,54
echo $this->currencyFacade->getByCode('USD')->formatToString(45.54); // returns $45.54
echo $this->currencyFacade->getByCode('EUR')->formatToString(45.54); // returns 45,54 €
```

decimal point, hundred and thousand separator, symbol and code is saved in DB (table currency)

Important
=========

[](#important)

Extension requires Doctrine ORM and symfony\\console for currency import.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.3% 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 ~147 days

Total

5

Last Release

1483d ago

Major Versions

v1.0.1 → v2.0.02022-03-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/4bf4ee88447a7ca740f8af98fb7d3616e62db0401458102425b2322d0cc4019d?d=identicon)[delacry](/maintainers/delacry)

---

Top Contributors

[![delacry](https://avatars.githubusercontent.com/u/45132928?v=4)](https://github.com/delacry "delacry (57 commits)")[![Tomix3D](https://avatars.githubusercontent.com/u/7952449?v=4)](https://github.com/Tomix3D "Tomix3D (1 commits)")

### Embed Badge

![Health badge](/badges/rixafy-currency/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[hostnet/entity-tracker-component

Provides an event when a Tracked entity changes

16158.1k4](/packages/hostnet-entity-tracker-component)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)[kibatic/datagrid-bundle

Datagrid for Symfony

1418.3k](/packages/kibatic-datagrid-bundle)

PHPackages © 2026

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