propaganistas/laravel-phone
Add robust phone number validation, casting, and formatting to Laravel using Google’s libphonenumber (PHP port). Validate by country or dynamic country fields, cast model attributes to phone objects, format numbers consistently, and compare/evaluate phone metadata.
Feature Development:
012/34.56.78) while internally normalizing to E.164 for consistency.Roadmap Priorities:
users, contacts).Build vs. Buy:
libphonenumber is battle-tested). Reduces technical debt and ensures compliance with global telecom standards.libphonenumber).Use Cases:
+44 20 1234 5678 for UK users, 00 44 20 1234 5678 for EU users).1-800-123-4567 → +18001234567) during system upgrades.Adopt This Package If:
Look Elsewhere If:
*"This package leverages Google’s industry-standard libphonenumber to handle phone numbers in Laravel—saving us months of development time while ensuring compliance with global telecom standards. Key benefits include:
+44 20... for UK users, 00 44 20... for EU users).+18001234567) to avoid duplicates and simplify searches.*"This package provides a drop-in solution for phone number handling in Laravel, built on libphonenumber-for-php-lite. Key features:
phone:US,BE), type constraints (mobile/landline), and lenient parsing.RawPhoneNumberCast (preserves user input) or E164PhoneNumberCast (normalized storage).formatForCountry('US')), compare equality, or extract metadata (country, type).phone:mobile in forms, and use E164PhoneNumberCast to standardize storage. The package handles edge cases (e.g., +32 (0) 12 34 56 78 → +3212345678)."*How can I help you explore Laravel packages today?