# marmelroy/PhoneNumberKit

A Swift framework for parsing, formatting and validating international phone numbers. Inspired by Google's libphonenumber.

Repository: https://github.com/marmelroy/PhoneNumberKit
Canonical: https://ross.abutalabs.com/products/phonenumberkit
Language: Swift
License: MIT
License Family: permissive
Topics: phone-number, google-libphonenumber, swift, parsing, validation, contacts, formatting
Last push: 2026-05-25T20:59:33+00:00

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

## Adoption (not part of the score)
Stars 5386, forks 854 (observed 2026-08-28T04:09:17.149804+00:00)

## What it is
A Swift framework for parsing, formatting, and validating international phone numbers, inspired by Google's libphonenumber. This original repository is frozen at 4.3.0; active development has moved to the PhoneNumberKit organization.

## Use cases
- validate phone numbers entered by users in an iOS app
- format international phone numbers consistently
- parse a phone number string into country code and national number
- normalize phone numbers from contacts to E.164
- detect the default region code from the device
- build a phone number text field with country code picker

## When to choose
- you need libphonenumber-style phone number handling in Swift
- you want a lightweight, fast, well-tested Swift phone number library
- you are pinned to the 4.x API and manage metadata updates yourself

## When to avoid
- you want current metadata and active maintenance - use PhoneNumberKit/PhoneNumberKit instead
- you need PhoneNumberTextField or the country picker - use PhoneNumberKitUI
- your project is not in the Swift/Apple ecosystem

## Facets
- artifact type: library
- maturity: abandoned
- function: parser, serialization, form-handling
- domain: developer-tools, mobile-development, cross-platform
- platform: -
- tags: phone-number, libphonenumber, formatting, swift-framework, contacts, ios, macos, swift

## Member repositories
- marmelroy/PhoneNumberKit (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:17.149804+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-29T17:58:25.239929+00:00, confidence not recorded.
  - readme: https://github.com/marmelroy/PhoneNumberKit (fetched 2026-08-28T04:09:17.149804+00:00, sha 7549e2a448be)
- Data as of 2026-08-30T08:39:29.467469+00:00.
