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
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
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