# giggsey/libphonenumber-for-php

PHP version of Google's phone number handling library

Repository: https://github.com/giggsey/libphonenumber-for-php
Canonical: https://ross.abutalabs.com/products/libphonenumber-for-php
Homepage: https://giggsey.com/libphonenumber/
Language: PHP
License: Apache-2.0
License Family: permissive
Topics: phone-number, php, libphonenumber, hacktoberfest
Last push: 2026-08-15T20:06:10+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 98, longevity 100
- inputs: {"age_days": 4906, "days_push": 18, "days_rel": 18, "gap_med": 13.0, "n_releases_24m": 49}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5050, forks 480 (observed 2026-08-28T04:09:09.023091+00:00)

## What it is
A PHP port of Google's libphonenumber library for parsing, formatting, storing, and validating international phone numbers. It also provides geocoding, carrier mapping, timezone lookup, and short number information.

## Use cases
- validate international phone numbers in a PHP form
- format phone numbers in E.164 for storage
- parse user-entered phone numbers into country and national number
- look up the carrier for a phone number
- determine the timezone of a phone number
- geocode a phone number to a region or city
- check if a number is a valid short code or emergency number

## When to choose
- you need robust, standards-based phone number handling in PHP
- you want a maintained port of Google's libphonenumber with regular metadata updates
- you need carrier, timezone, or geocoding metadata for phone numbers
- you want framework integrations and a lite package for smaller bundle size

## When to avoid
- you are not working in PHP
- you only need simple formatting without validation and can use a regex
- you need real-time line type or carrier verification from live network data

## Facets
- artifact type: library
- maturity: active
- function: parser, form-handling, internationalization, geospatial
- domain: developer-tools, web-development
- platform: php
- tags: phone-number, libphonenumber, phone-validation, phone-formatting, carrier-lookup, timezone-lookup, localization, telecommunications

## Member repositories
- giggsey/libphonenumber-for-php (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:09.023091+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:17:21.526668+00:00, confidence not recorded.
  - readme: https://github.com/giggsey/libphonenumber-for-php (fetched 2026-08-28T04:09:09.023091+00:00, sha 6fabb0999ed6)
  - homepage: https://giggsey.com/libphonenumber/ (fetched 2026-08-29T08:57:46.601735+00:00, sha 5ec542c01560)
- Data as of 2026-08-30T08:39:29.467469+00:00.
