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.
+41 44 668 18 00 for Switzerland) and dialing instructions (e.g., 011 41... for US users).1-800 in the US) to flag potential scams or adjust pricing logic.+44 79... → 079... for UK users) and suggest corrections for typos.999 in the UK) for critical alerts.911, 112) for compliance or safety features.twilio/php or libphonenumber-for-php-full for advanced features).mbstring extension.libphonenumber-for-php package instead).For Executives: "This package lets us handle phone numbers globally—like Google does internally—without building or maintaining custom validation logic. It’s used by millions of apps (via Google’s libphonenumber) and will save dev time, reduce fraud (e.g., invalid numbers), and improve UX (e.g., auto-formatting for local users). For example, it can detect emergency numbers (e.g., 999 in the UK) or toll-free lines (e.g., 1-800 in the US) to flag risks or optimize costs. It’s a drop-in solution with zero ongoing maintenance."
For Engineering: *"This is a lite, high-performance PHP port of Google’s libphonenumber, focused on core phone number utils (parsing, validation, formatting). Key benefits:
+44 7900 123456 → 07900 123456 for UK).isValidNumber()).NATIONAL, E164).mbstring.$phoneUtil = \libphonenumber\PhoneNumberUtil::getInstance();
$number = $phoneUtil->parse('+44 7900 123456', 'GB');
echo $phoneUtil->format($number, \libphonenumber\PhoneNumberFormat::NATIONAL); // '07900 123456'
```*
How can I help you explore Laravel packages today?