brick/money
Brick\Money is a PHP library for precise, immutable money and currency values. It provides exact arithmetic (no float errors), explicit rounding control, and supports large amounts via brick/math, with optional GMP/BCMath acceleration.
Adopt if:
Look elsewhere if:
money.js or decimal.js).Money facade).web3.php).python-decimal, money-rails).exchangerate-api)."This package solves a critical technical debt in our financial calculations. Currently, floating-point errors in PHP can silently corrupt transaction totals—costing us [X] in disputes or lost revenue annually. Brick\Money guarantees precision, reduces fraud risk, and future-proofs our multi-currency support (e.g., global expansion). It’s a low-risk, high-impact upgrade with MIT licensing and 1.9K+ adopters. ROI: fewer chargebacks, faster audits, and scalable pricing logic."
Ask: "Can we allocate [Y] dev hours to integrate this for our [checkout/accounting] system?"
*"Brick\Money is a battle-tested, immutable library for exact monetary arithmetic in PHP. Key benefits:
0.1 + 0.2 = 0.30000000000000004 bugs—uses rational numbers under the hood.Money::of(100, 'USD')->plus($tax)).Proposal:
Money facade (1 day).float calculations across [X] services.Blockers to address:
Ask: "Should we prioritize this over [competing initiative] given its impact on [revenue/audit risk]?"
How can I help you explore Laravel packages today?