henriquemattia/moeda-br
A Laravel package for working with Brazilian currency (BRL). Format numbers as R$, parse localized money strings, and convert amounts using simple, reusable helpers. Ideal for e-commerce, invoices, and financial dashboards, it keeps monetary values consistent across your application.
Architecture fit
R$ 1.234,56 display and input parsing. It is a convenience layer, not a money-handling foundation — the docs describe parsing localized strings back into floats, and float-backed money is the single most common source of downstream rounding and reconciliation defects.Integration feasibility
Technical risk
^3.x constraint without a major-version signal.Key questions
composer require actually deliver, and which does the README document?intl's NumberFormatter with pt_BR covers formatting in roughly a day of work; is a zero-star dependency cheaper than ~2–3 days of first-party code and permanent ownership?Stack fit
moneyphp/money or brick/money), and treat this package as a presentation convenience only.Migration path
number_format calls, inventory them first — scattered formatting is usually the reason a "formatting inconsistency" ticket exists, and consolidating is where most of the actual value sits, independent of which library wins.Compatibility
3.2.* or exact) rather than a loose constraint, and commit the lockfile. Arithmetic-adjacent patches deserve the same scrutiny as schema changes.intl/locale availability in the runtime image before betting on any fallback formatting strategy.Sequencing
intl formatting plus a money library, using measured spike output rather than vendor claims.CurrencyFormatter contract) so the vendor is swappable without touching call sites.Maintenance
Support
Scaling
Failure modes
Ramp-up
TPM recommendation: Conditional adopt, scoped to presentation. Proceed only after the Nova-vs-utility ambiguity is resolved. If the need is BRL display and input parsing in a Brazil-only product, adopt with an exact pin behind a first-party interface. If the need is money-of-record arithmetic, decline and standardize on integer minor units with an established money library — the 3.2.1 "improvements to multiply and divide" do not change that calculus, and zero stars plus float-returning parsers is not a foundation for revenue-bearing numbers.
How can I help you explore Laravel packages today?