brick/money
Immutable money & currency library for PHP with exact arithmetic, explicit rounding control, and support for any-sized amounts. Built on brick/math to avoid floating-point errors; works with ISO currencies and integrates well with GMP/BCMath for speed.
rust_decimal).decimal module, Java’s BigDecimal).Executives: "Brick\Money solves a critical technical debt risk: floating-point errors in financial calculations can silently corrupt transactions, leading to compliance violations or revenue loss. This MIT-licensed library provides battle-tested, immutable monetary operations—used by 1.9K+ devs—so we can ship features like multi-currency checkout or profit allocation faster and safer than building from scratch. It’s a strategic ‘buy’ to avoid rework in high-stakes areas like payments or accounting."
Engineering:
*"This replaces ad-hoc float math with exact arithmetic for money, supporting:
0.1 + 0.2 !== 0.3 in production?
Tradeoff: ~50KB overhead vs. weeks of dev time. Docs are solid, and the team maintains it actively (last release: 2026)."*How can I help you explore Laravel packages today?