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

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

soneritics/currency
===================

Currency classes for converting and displaying prices in specific currencies.

0421PHP

Since Feb 19Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Soneritics/Currency)[ Packagist](https://packagist.org/packages/soneritics/currency)[ RSS](/packages/soneritics-currency/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Currency
========

[](#currency)

[![Build Status](https://camo.githubusercontent.com/45cc041af3e39a248501d098086c81890733f8af5344412198dabcc8dacd7b0a/68747470733a2f2f6170692e7472617669732d63692e6f72672f536f6e657269746963732f43757272656e63792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Soneritics/Currency)[![Coverage Status](https://camo.githubusercontent.com/2062331e6a9ee5f72d645dcd180301529fb93b0ec017eae883161eeaec4477a7/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f536f6e657269746963732f43757272656e63792f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/Soneritics/Currency?branch=master)[![License](https://camo.githubusercontent.com/505fe3a551fc6e64816f64cee81471b04e7ef943170e4f994c249982b3fd4290/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](https://camo.githubusercontent.com/505fe3a551fc6e64816f64cee81471b04e7ef943170e4f994c249982b3fd4290/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)

by

- [@Soneritics](https://github.com/Soneritics) - Jordi Jolink

Introduction
------------

[](#introduction)

Currency converting and showing a formatted price label.

Minimum Requirements
--------------------

[](#minimum-requirements)

- PHP 5.5+

Features
--------

[](#features)

- Showing a formatted price; $ 1.99 or € 1,99
- Converting currencies

### Example

[](#example)

```
$price = (new Price)
    ->addCurrency('euro', new Currency('€', ',', '.'));
    ->addCurrency('usd', new Currency('$', '.', ',', 1.1388));

echo $price->convert(1, 'euro', 'usd'); // 1.1388
echo $price->convert(1, 'usd', 'euro'); // 0.87812

echo $price->show(1); // € 1,00
echo $price->show(1, 'euro'); // € 1.00
echo $price->show(1, 'usd'); // $ 1.39
echo $price->show(1, 'euro', 'usd'); // € 0.88
echo $price->show(1, 'usd', 'euro'); // $ 1.39
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3717850?v=4)[Jordi Jolink](/maintainers/soneritics)[@Soneritics](https://github.com/Soneritics)

---

Top Contributors

[![Soneritics](https://avatars.githubusercontent.com/u/3717850?v=4)](https://github.com/Soneritics "Soneritics (25 commits)")

### Embed Badge

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

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

###  Alternatives

[mrsuh/php-bison-skeleton

PHP skeleton for Bison

3810.4k1](/packages/mrsuh-php-bison-skeleton)

PHPackages © 2026

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