giggsey/libphonenumber-for-php-lite
Lite PHP port of Google’s libphonenumber: parse, validate, format, and store international phone numbers. Includes core PhoneNumberUtils only (no geolocation/carrier/short number info). 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?