ageekdev/laravel-num
A lightweight Laravel package for number formatting and conversion, offering convenient helpers to present numeric values consistently in your app. Includes a clean API for common number tasks and simple Laravel integration.
Consider adoption when:
Number facade does not cover — most commonly number-to-words (legal amounts on invoices/contracts) or locale-specific digit rendering.Look elsewhere (or stay pinned) when:
Number helpers or the PHP intl extension already cover your needs. Adding a dependency for formatting you already have is unnecessary surface area.intl/NumberFormatter is the more defensible foundation.Release-specific caveat to verify before adoption: the v2.0.0 notes say Laravel 9, 10 "and 10" are dropped, which is ambiguous about Laravel 11. Confirm from composer.json that 11 and 12 remain in the constraint before assuming a drop-in upgrade path from v1.x; if 11 is also dropped, the jump is effectively Laravel 12+ only and should be scoped accordingly.
For executives (one paragraph): We depend on a small open-source Laravel package for formatting numbers in customer-facing documents — amounts written out in words on invoices and contracts, and locale-correct digits on receipts. Its new major version simply keeps it current: it adds support for the newest Laravel release and drops support for older framework and PHP versions we are already moving off. There is no new functionality and no cost. The practical effect is that this dependency will not block our platform upgrade; the only work is a version bump timed with that upgrade, plus a note that any team still on the older framework must stay on the previous release until they migrate.
For engineering:
laravel/framework support moves to current versions, php constraint to ^8.2.^1.4.0 and add a TODO on the migration ticket.composer.json for the exact framework constraint (the changelog's "9, 10, and 10" is ambiguous about 11) and confirm the CI matrix covers the versions we actually run.intl without touching call sites, and add a test asserting the exact rendered output for a representative invoice amount so a future release can't silently change customer-visible text.How can I help you explore Laravel packages today?