marmelroy/PhoneNumberKit

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

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 2 minutes ago
Type:Library / SDKCategory(s):Core & Utility LibrariesLanguages & Runtimes
Added to GitGenius on September 12th, 2026
Created on September 26th, 2015
Open Issues & Pull Requests: 20 (+0)
GitHub issues: Enabled
Number of forks: 854
Total Stargazers: 5,388 (+0)
Total Subscribers: 66 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

PhoneNumberKit is a Swift framework for parsing, formatting and validating international phone numbers.

The framework solves the problem of handling international phone number data reliably by wrapping the metadata and logic from Google's libphonenumber project in a Swift-native interface. It parses phone number strings into structured components, validates them against regional rules, normalizes them to standard formats, and provides an AsYouType formatter for text input fields. The tool extracts country codes, region information, and number type classification from any phone number string.

Developers building iOS applications that need to accept, store or display phone numbers should choose this framework. It suits any project requiring accurate international phone number handling without implementing custom validation logic. The framework is optimized for iOS and automatically detects the device's default region code. Performance is efficient, handling large batches of parses quickly.

This repository is frozen and no longer maintained. Active development has moved to the PhoneNumberKit organization, where the core parsing, formatting and validation functionality continues at version 5.0.0 and above, while UI components including a phone number text field and country code picker are now in a separate PhoneNumberKitUI package. Users of this frozen repository should migrate to the organization's maintained version, which uses the same module name so core code requires no changes. The validation metadata in this repository will become outdated over time as phone numbering plans change globally.