senseexception/intl-format
Locale-aware formatting for Laravel/PHP apps using PHP’s Intl extension. senseexception/intl-format simplifies displaying numbers, currencies, percentages, dates, and times with consistent localized output and minimal configuration.
sprintf-like flow. It should not replace Laravel’s translator, validation messages, or broader localization strategy without source review.ext-intl availability, and whether the API exposes the formatting primitives the product actually needs. Low star count and unknown repository mean the package must be treated as an experimental dependency until source, tests, and release history are inspected.ext-intl in CI, queue workers, or production would cause runtime failures. Use behind an internal interface so the package can be replaced or forked.ext-intl a hard requirement? Does it support ICU MessageFormat, plural/select rules, currency, dates, and locale fallback? Are there tests, CI, static analysis, and a security policy? How are formatting errors handled? What is the maintainer activity and release cadence? Does output escaping match Laravel/Blade expectations?sprintf, __(), and manual number/date formatting. Pilot on a bounded, non-critical message set, compare package output against current output, then expand only where it demonstrably improves locale correctness.ext-intl presence, and behavior under PHP-FPM, queue workers, and Octane/long-running workers. Avoid global locale mutation; pass locale explicitly per call to prevent cross-request leakage.MessageFormatterInterface adapter with fallback behavior. Add contract tests for supported locales and failure cases. Pilot behind a feature flag. Roll out to selected message categories, then document fallback and rollback. Do not call the package directly from controllers or Blade templates; centralize usage.ext-intl, unsupported locales, malformed patterns, inconsistent fallback, unescaped placeholders, and exceptions breaking user messages. Queue workers may run with a different locale or extension set than web workers. Always catch formatting failures and fall back to a safe, escaped message.How can I help you explore Laravel packages today?