PHPackages                             mrprompt/money - 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. mrprompt/money

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

mrprompt/money
==============

money and currency helper

1.1.0(6y ago)210.9k↓100%[1 PRs](https://github.com/mrprompt/money/pulls)GPL-3.0-or-laterPHPPHP &gt;=7.3CI passing

Since Mar 12Pushed 3mo agoCompare

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

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

Money
=====

[](#money)

[![Build Status](https://camo.githubusercontent.com/efaecc91305f077a4c2b61253b09d82e3fe802c0c0fdae478053f807d7a2ada3/68747470733a2f2f7472617669732d63692e636f6d2f6d7270726f6d70742f6d6f6e65792e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/mrprompt/money)

Library to made work with currency and money easy.

### Install

[](#install)

```
composer install mrprompt/money
```

### Use

[](#use)

```
use MrPrompt\Money\Currency;

$money = new Currency('BRL');
$money->code(); // return the code (the same passed at constructor)
$money->number(); // return the code as number, like 960.
$money->name(); // return the currency name, like Real
$money->countries(); // return the countries that use the currency
$money->decimals(); // return the decimals used by the currency
$money->symbol(); // return the symbol of the currency
$money->format(1.00); // format the currency
```

### License

[](#license)

GPLv3

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance54

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

2245d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d08744966e0d5783569605da853ef945dadac0be0f613f2eba6a052861d937a?d=identicon)[mrprompt](/maintainers/mrprompt)

---

Top Contributors

[![mrprompt](https://avatars.githubusercontent.com/u/166088?v=4)](https://github.com/mrprompt "mrprompt (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mrprompt-money/health.svg)

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

###  Alternatives

[spaze/csp-config

Build Content Security Policy from a config file

143.3k](/packages/spaze-csp-config)

PHPackages © 2026

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