laravelwebdev/numeric
LaravelWebDev Numeric adds convenient number helpers to Laravel: format, parse, and validate numeric values with a clean, framework-friendly API. Lightweight and easy to install, it keeps common numeric tasks readable and consistent across your app.
number_format() calls scattered across Blade templates and API resources — but only for presentation numbers, not money math.Adopt when:
NumberFormatter/intl boilerplate.Look elsewhere when:
brick/money, moneyphp/money, or bcmath. Formatting is not calculation.For executives: This is a small, low-risk utility that standardizes how numbers appear everywhere in the product — prices, totals, metrics, growth figures. The 1.0.1 release adds correct handling of negative values, which is what makes refunds, losses, and negative growth numbers display properly instead of requiring custom code. The payoff is fewer inconsistent-number bugs and less bespoke code to maintain. Recommendation: adopt it for display formatting, keep financial computation in a dedicated money library, and pin the version while the API matures.
For engineering: Laravel-native numeric helper with a concise API. 1.0.1 adds negative-value support, so sign handling no longer needs a wrapper. Treat it strictly as a presentation-layer dependency: confirm rounding behavior for negatives (half-up vs. away-from-zero), locale-specific negative sign placement and currency symbol position, then lock it in with tests for signed amounts before rollout. Pin to a minor version and expect further 1.0.x churn, given that a core capability shipped as a patch.
How can I help you explore Laravel packages today?