propaganistas/laravel-phone
Add Google libphonenumber-powered phone number validation and utilities to Laravel. Validate numbers by country (static list or matching a companion country field), cast attributes, format and compare numbers, and access phone metadata using a simple PhoneNumber class.
Core Feature Development:
Roadmap Priorities:
Build vs. Buy:
Use Cases:
"This package lets us handle phone numbers like a first-class citizen in our Laravel app—no more hacky regex or manual parsing. It’s built on Google’s libphonenumber, the gold standard for phone validation, and gives us:
+1 (800) 555-1234 → 800-555-1234 for US users)."Laravel-Phone integrates seamlessly with our stack and gives us:
phone:US,BE in Laravel’s validation rules or chain methods like ->country(['US', 'BE'])->type('mobile') for granular control.PhoneNumber objects in Eloquent models (e.g., $user->phone->formatNational()).formatForMobileDialingInCountry('NL')), check types (isOfType('mobile')), or compare equality across formats."This package ensures phone numbers work consistently across the app:
0123456789, +44 20 1234 5678, 1-800-FLOWERS), and we’ll normalize them internally.+33 1 23 45 67 89 for France).How can I help you explore Laravel packages today?