A PHP library for parsing, formatting, storing and validating international phone numbers. This library is based on Google's libphonenumber. This library will try to follow the same version numbers as Google. There could be additional releases where needed to fix critical issues that can not wait until the next release from Google. This does mean that this project may not follow Semantic Versioning, but instead Google's version policy. As a result, jumps in major versions may not actually contain any backward-incompatible changes. Please read the release notes for such releases. This library uses phone number metadata from Google's libphonenumber. If this library is working as intended, it should provide the same result as the Java version of Google's project. If you believe that a phone number is returning an incorrect result, first test it with libphonenumber via their Online Demo.

Features

  • PHP versions 5.3 up to PHP 8.1 are currently supported
  • The PECL mbstring extension is required
  • It is recommended to use composer to install the library
  • You can also use any other PSR-4 compliant autoloader
  • An online demo is available
  • Parsing/formatting/validating phone numbers for all countries/regions of the world

Project Samples

Project Activity

See All Activity >

Categories

Telephony

License

Apache License V2.0

Follow libphonenumber for PHP

libphonenumber for PHP Web Site

Other Useful Business Software
Get Avast Free Antivirus with 24/7 AI-powered online scam detection Icon
Get Avast Free Antivirus with 24/7 AI-powered online scam detection

Get protection for today’s online threats. Free.

Award-winning antivirus protection, as well as protection against online scams, dangerous Wi-Fi connections, hacked accounts, and ransomware. It includes Avast Assistant, your built-in AI partner, which gives you help with suspicious online messages, offers, and more.
Free Download
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of libphonenumber for PHP!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Telephony Software

Registered

2022-02-08