epigra/laravel-int
Epigra's Laravel Int package offers lightweight, integer-focused helpers and utilities for Laravel applications, making common tasks around integer values and model handling simpler and more consistent. It is easy to install and designed to fit smoothly into existing Laravel projects.
1,234.56 in en-US is 1.234,56 in de-DE, and currency symbols, grouping, and decimal precision all shift. This package is a candidate answer to "how much engineering does locale-correct formatting cost us?" — the answer is small, which keeps localization scoped as a series of incremental epics rather than a platform rewrite.ext-intl glue, or depend on someone else's?" That is a buy-side question with a low ceiling, and this package sits at the cheap end of it."1.234,56" → 1234.56), not just display formatting. This is where homegrown solutions most often break and where a small helper library earns its keep — relevant to admin tooling, CSV imports, and quote/estimate flows.Consider it when:
Illuminate\Support\Number helpers (roughly pre-Laravel 10), or you need parsing/formatting behaviors that the native helpers do not expose.NumberFormatter configuration and its error-prone locale rules.Look elsewhere or build in-house when:
To executives (one paragraph): Formatting numbers and currency correctly per locale is a small but high-visibility piece of entering new markets — a wrong decimal separator in a checkout total undermines trust faster than almost any other defect. The engineering cost is measured in days, not weeks, and the blast radius is contained. My recommendation: we get locale-correct formatting into the next release, but we build it on the framework's native number helpers rather than adding an unaudited third-party dependency. We keep this package on the shelf as a reference implementation, not on the critical path. Total ask: roughly two to three engineering days plus QA across our top three locales.
To engineering: Small surface area, thin wrapper over PHP's ext-intl. The technical risk is maintenance and provenance, not correctness — one maintainer, no adoption signal, no visible security posture. If we adopt it, it goes behind an internal formatting interface so we can swap it for framework-native helpers without touching call sites, and we add tests covering our actual target locales. Please confirm whether the native Number helpers cover our parsing needs; if they do, this package is redundant.
Decision requested: Approve locale-correct number/currency formatting as a scoped slice of the localization epic, with a build-on-framework recommendation and this package retained as an evaluated fallback.
How can I help you explore Laravel packages today?