brick/money
A money and currency library for PHP observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 95
- Release rhythm 95
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 18
- age_days: 4112
- days_rel: 34
- days_push: 34
- n_releases_24m: 14
Adoption not part of the score
1926 stars · 118 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PHP library providing immutable Money and Currency classes with exact arithmetic and explicit rounding control, built on brick/math. It supports ISO 4217 currencies, money of any scale, and currency conversion with exchange rates.
Use cases
- handle money amounts without floating-point rounding errors in PHP
- convert between currencies using exchange rates
- work with ISO 4217 currency codes
- perform exact arithmetic on monetary values
- store and format money with explicit rounding rules
- build an e-commerce checkout with precise price calculations
When to choose
- you need exact, arbitrary-precision money math in PHP
- you want immutable value objects for monies and currencies
- you need currency conversion with controlled rounding
When to avoid
- you need a full billing or invoicing system rather than a money library
- your project runs on PHP below 8.2 and you cannot pin an older release
- you need live exchange-rate fetching built in
Facets
library · maturity active
math serialization fintech developer-tools e-commerce php money currency exchange-rates iso-4217 exact-arithmetic immutable-classes
1 source
- readme: https://github.com/brick/money · fetched 2026-08-28 · e384a776485e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| brick/money | main | 96 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem