Phonelib is a Ruby gem that provides phone number validation and formatting capabilities by leveraging Google's libphonenumber library. It enables developers to parse, validate, and format international phone numbers within Ruby applications.
Features
- Validates phone numbers against international formats
- Formats numbers into E.164, international, and national formats
- Determines phone number types (e.g., mobile, fixed-line)
- Supports geocoding to identify the country of the number
- Integrates with Rails for model validations
- Open-source under the MIT license
