moneyphp/money
PHP implementation of Fowler's Money pattern. observed · 2026-08-28
Health v2 · maintenance only
81/100
- Activity 91
- Release rhythm 58
- 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: 135.0
- age_days: 5636
- days_rel: 121
- days_push: 57
- n_releases_24m: 5
Adoption not part of the score
4861 stars · 443 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A PHP library implementing Fowler's Money pattern as a value object for safe monetary calculations, avoiding float rounding errors by using string-backed big integers. It includes currency repositories, money formatting, allocation, and exchange rate support via Swap.
Use cases
- store and calculate monetary values without float errors
- convert between currencies with exchange rates
- split an amount into parts without losing cents
- format money amounts for display with intl
- work with ISO currencies in PHP
- handle very large monetary values with big integers
When to choose
- you're building a PHP application dealing with payments, billing, or prices
- you need exact arithmetic on monetary values
- you need currency conversion or allocation logic
When to avoid
- your project is not in PHP
- you only need simple display formatting without arithmetic
- you need a full accounting or ledger system rather than a value object
Facets
library · maturity stable
serialization math fintech e-commerce developer-tools php money-pattern currency value-object exchange-rates arbitrary-precision
1 source
- readme: https://github.com/moneyphp/money · fetched 2026-08-28 · 4db227008035
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| moneyphp/money | main | 81 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem