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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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