giggsey/libphonenumber-for-php

PHP version of Google's phone number handling library

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 37 minutes ago
Type:Library / SDKCategory(s):Core & Utility LibrariesLanguages & Runtimes
Added to GitGenius on September 13th, 2026
Created on March 28th, 2013
Open Issues & Pull Requests: 3 (+0)
GitHub issues: Enabled
Number of forks: 480
Total Stargazers: 5,056 (+0)
Total Subscribers: 105 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 0.7 hours
Mean response time: 26.0 hours
90th percentile: 2.2 days
Tracked items: 42

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 2
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 522 days
Stale 30+ days: 2
Stale 90+ days: 2

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • help wanted (2)
  • bug (1)
  • metadata (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

libphonenumber for PHP is a PHP library for parsing, formatting, storing, and validating international phone numbers.

The library solves the problem of handling phone numbers across different countries and formats by providing a PHP port of Google's libphonenumber. It parses phone number strings into structured objects, validates them against country-specific rules, and formats them for display or storage. The tool handles the complexity of international dialing conventions, area codes, and number patterns that vary by region.

Developers should choose this library if they need robust phone number validation and formatting in PHP applications serving international users. It suits projects ranging from user registration systems to telecommunications platforms. The README mentions a lighter variant for projects that only need core phone number parsing without additional features like geocoding or carrier mapping. Beyond basic validation, the tool offers geocoding to map numbers to locations, carrier identification, timezone mapping, and short number information for emergency and service numbers.

The project maintains alignment with Google's libphonenumber versioning rather than semantic versioning, meaning major version bumps may not indicate breaking changes. The library supports PHP versions within the official support window without requiring major version updates to track PHP releases. Development includes continuous integration testing and code coverage tracking. The project provides comprehensive documentation across multiple utility classes and maintains an online demo for testing functionality.