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
Managed MySQL, PostgreSQL, and SQL Databases on Google Cloud Icon
Managed MySQL, PostgreSQL, and SQL Databases on Google Cloud

Get back to your application and leave the database to us. Cloud SQL automatically handles backups, replication, and scaling.

Cloud SQL is a fully managed relational database for MySQL, PostgreSQL, and SQL Server. We handle patching, backups, replication, encryption, and failover—so you can focus on your app. Migrate from on-prem or other clouds with free Database Migration Service. IDC found customers achieved 246% ROI. New customers get $300 in credits plus a 30-day free trial.
Try Cloud SQL Free
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