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

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

sclinternet/currency
====================

Library of classes for dealing with currency

01091[1 issues](https://github.com/SCLInternet/SclCurrency/issues)PHP

Since Jan 14Pushed 12y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

SclCurrency
===========

[](#sclcurrency)

[![Build Status](https://camo.githubusercontent.com/9c896a9202857cda042380db59c9d5a616796baf5e9f42544ca09669b9cbd630/68747470733a2f2f7472617669732d63692e6f72672f53434c496e7465726e65742f53636c43757272656e63792e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/SCLInternet/SclCurrency)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/51de14d3cba5983f7593b75f9e2bee0dc4221a0f40bbbadcac8655c0fe016295/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53434c496e7465726e65742f53636c43757272656e63792f6261646765732f7175616c6974792d73636f72652e706e673f733d66343336333734333633356461383366383530316632633935313366623239656630353736373265)](https://scrutinizer-ci.com/g/SCLInternet/SclCurrency/)[![Code Coverage](https://camo.githubusercontent.com/a310151d92f58275efb8c0d67d47a8badcf131633262a2359d2d2fefd01e9357/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53434c496e7465726e65742f53636c43757272656e63792f6261646765732f636f7665726167652e706e673f733d39646336386534343333376565306437653161626130376530323064356239323234643834353064)](https://scrutinizer-ci.com/g/SCLInternet/SclCurrency/)

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

[](#installation)

Currency
--------

[](#currency)

Money
-----

[](#money)

TaxedPrice
----------

[](#taxedprice)

Comparison
----------

[](#comparison)

Calculations
------------

[](#calculations)

Factories
---------

[](#factories)

### CurrencyFactory

[](#currencyfactory)

```
use SCL\Currency\CurrencyFactory;

$factory = CurrencyFactory::createDefaultInstance();

$sterling = $factory->create('GBP');
```

### MoneyFactory

[](#moneyfactory)

```
use SCL\Currency\CurrencyFactory;
use SCL\Currency\MoneyFactory;

$factory = MoneyFactory::createDefaultInstance();

$factory->setDefaultCurrency(CurrencyFactory::createDefaultInstance()->create('GBP'));

$money = $factory->createFromValue(1.00);
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/1746ea71ef8c7feaef0a3f79a01ee55dca368191b4eaf0327e5e80c7bfba7441?d=identicon)[tomphp](/maintainers/tomphp)

### Embed Badge

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

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

###  Alternatives

[nystudio107/craft-webperf

Webperf helps you build &amp; maintain high quality websites through Real User Measurement of your website's performance

2540.9k1](/packages/nystudio107-craft-webperf)

PHPackages © 2026

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