# daddyz/phonelib

Ruby gem for phone validation and formatting using google libphonenumber library data

Repository: https://github.com/daddyz/phonelib
Canonical: https://ross.abutalabs.com/products/phonelib
Language: Ruby
License: MIT
License Family: permissive
Topics: ruby, google-libphonenumber, phone-validation, phone-parse, phone-number, parsing
Last push: 2026-08-26T07:27:33+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 5077, "days_push": 7, "days_rel": 7, "gap_med": 24, "n_releases_24m": 28}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1163, forks 142 (observed 2026-08-28T04:03:49.696553+00:00)

## What it is
Phonelib is a Ruby gem for validating and formatting phone numbers based on Google's libphonenumber data. It supports parsing into E164 and national formats, default country configuration, special number parsing, and vanity number conversion.

## Use cases
- validate phone numbers in a Rails app
- parse phone numbers to E164 format
- format phone numbers with national prefix
- handle international phone input from users
- convert vanity phone numbers to digits
- validate phone numbers with a default country fallback

## When to choose
- you need reliable phone validation in Ruby backed by Google libphonenumber data
- you want ActiveRecord model integration for phone validation
- you need E164 or national formatting for stored phone numbers

## When to avoid
- you need the full feature set of Google libphonenumber, as Phonelib implements only a subset
- you are not working in Ruby or a Ruby web framework

## Facets
- artifact type: library
- maturity: active
- function: parser, form-handling, serialization
- domain: web-development
- platform: ruby
- tags: phone-number, libphonenumber, e164, phone-formatting, rails-integration, telephony, ruby, internationalization

## Member repositories
- daddyz/phonelib (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:49.696553+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-30T06:31:33.641605+00:00, confidence not recorded.
  - readme: https://github.com/daddyz/phonelib (fetched 2026-08-28T04:03:49.696553+00:00, sha e71f28af4de5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
