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

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

archette/currency
=================

Implementation of rixafy/currency to Nette Framework

v2.0.1(4y ago)01.1kMITPHP

Since Jun 21Pushed 4y ago1 watchersCompare

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

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

Currency
========

[](#currency)

💱 CRUD model [rixafy/currency](https://github.com/Rixafy/Currency) ported to @nette framework.

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

[](#installation)

```
composer require archette/currency

```

Add extension to your neon configuration

```
extensions:
    archette.currency: Archette\Currency\CurrencyExtension

archette.currency:
    apiKey:
    apiService: fixer
    baseCurrency: EUR
```

and then run command `php bin/console rixafy:currency:update` for loading currencies and their rates to database (decimal points, separators and symbols are not yet included in update script)

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

[](#example-usage)

Basic examples for working with extension

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
```

Latte filters
-------------

[](#latte-filters)

There are 3 basic latte filters, **currency**, **currencyCode** and **currencyNumber**, all 3 filters have same parameters, $amount and $currencyCode (optional)

`{45.54|currency}` will display `$45.54` if default or provided (CurrencyProvider::provide('USD')) currency is USD

`{45.54|currency:'EUR'}` will display `45,54 €`

`{45.54|currencyCode:'EUR'}` will display `45,54 EUR`

`{45.54|currencyNumber:'EUR'}` will display `45,54`

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

Important
=========

[](#important)

Extension requires implementation of Doctrine ORM in Nette Framework - .

Extension requires implementation of symfony/console in Nette Framework - .

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Total

4

Last Release

1516d 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 (41 commits)")

### Embed Badge

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

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

###  Alternatives

[drupol/drupal-conventions

Drupal conventions for coding.

2422.7k1](/packages/drupol-drupal-conventions)

PHPackages © 2026

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