erlenwald/filament-phone-input
Filament v5 phone input field with searchable country picker, favorites, per-country masks, and auto country detection. Configurable output format/state paths, optional country state field, default/IP lookup, and optional SVG flags. No intl-tel-input.
+1 (XXX) XXX-XXXX for US, +44 7XXX XXX XXX for UK).🇺🇸 +1 (XXX) XXX-XXXX).libphonenumber).giggsey/libphonenumber-for-php) for complex use cases.For Executives:
"This package lets us ship a global-ready phone input in Filament admin panels with minimal dev effort. It handles country detection, formatting (e.g., +44 7XXX XXX XXX), and flags—reducing support tickets from users entering invalid numbers. For example, a US user auto-sees (XXX) XXX-XXXX, while a UK user gets +44 7XXX XXX XXX. It’s a drop-in replacement for text inputs, cutting dev time by ~3 months while improving data quality. MIT-licensed and dependency-light, so no vendor lock-in."
For Engineering: *"This is a batteries-included Filament phone field with:
+1 (XXX) XXX-XXXX for US).intl-tel-input bloat—just ~200KB of assets. Tradeoff: Limited to Filament 5, but saves ~500 LOC vs. a custom build. Next steps: Add to composer.json, publish assets, and integrate into the [User Profile] form."*For Design:
*"This adds visual cues (flags, formatted masks) to phone inputs without breaking our Filament theme. Flags are customizable (square/rectangular), and the dropdown mimics Filament’s native UX. Note: Defaults to ISO codes if flags aren’t published, but we can enable them via displayCountryFlag(). Example:
PhoneInput::make('phone')
->displayCountryFlag()
->flagAspect('1x1'); // Square flags
```"*
How can I help you explore Laravel packages today?