giggsey/libphonenumber-for-php-lite
Lite PHP port of Google’s libphonenumber for parsing, formatting, storing, and validating international phone numbers. Includes core PhoneNumberUtils only (no geolocation/carrier/short numbers). Requires PHP 8.1+ and mbstring; install via Composer.
Google has bumped libphonenumber to v9 for Java compatibility reasons. We've taken this opportunity to make some improvements to this library.
Most projects can upgrade safely without requiring any code changes.
PhoneNumberType is now an enum instead of a class with constants.from() to load the corresponding enum.How can I help you explore Laravel packages today?