Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Numeric Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Display-layer correctness for signed numbers. 1.0.1 adds negative-value support, which unblocks refunds, credits, expense/loss columns, negative deltas on KPI cards, and debit/credit accounting views. Previously these would have required custom sign handling or wrapper logic outside the package.
  • Build vs. buy on formatting. A thin, tested numeric helper replaces the usual sprawl of ad-hoc number_format() calls scattered across Blade templates and API resources — but only for presentation numbers, not money math.
  • Localization & market rollout. Decisions about multi-market pricing, currency display, and percentage formatting depend on having a single, consistent formatting contract; this package is a candidate to be that contract.
  • Roadmap sequencing. 1.0.x status plus a core capability (negatives) landing in a patch release signals the API is still stabilizing. Plan a timeboxed evaluation spike and pin the version rather than treating it as bedrock in financial flows.
  • Consistency as a product quality goal. Standardized output removes a class of noisy UX bugs (mismatched separators, inconsistent minus signs, percentage rounding) that surface in customer-facing dashboards and invoices.

When to Consider This Package

Adopt when:

  • Numbers are for display: prices, totals, percentages, file sizes, metric deltas, summaries.
  • You want a Laravel-idiomatic, low-ceremony API over hand-rolling PHP NumberFormatter/intl boilerplate.
  • You need one source of truth for formatting across multiple teams and surfaces (web, API, emails).
  • You previously had to special-case negative values and want that responsibility owned by a dependency with tests.

Look elsewhere when:

  • You need arbitrary-precision or money-safe arithmetic — use brick/money, moneyphp/money, or bcmath. Formatting is not calculation.
  • You need full CLDR/ICU coverage, accounting-style parentheses for negatives, or jurisdiction-specific conventions; validate against your actual locales first.
  • The code path is regulated financial reporting where a 1.0.x sign-handling change is a compliance or audit risk.
  • You already have a stable, audited formatting utility — migrating mid-cycle buys little.

How to Pitch It (Stakeholders)

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource