0.01
No commit activity in last 3 years
No release in over 3 years
A Ruby library for parsing and formatting UK phone numbers.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.6
 Project Readme

uk_phone_numbers

A Ruby library for validating and formatting UK phone numbers.

Installation

$ gem install uk_phone_numbers

Usage

Validating a phone number

require 'uk_phone_numbers'

UKPhoneNumbers.valid? "02087123456"
# => true

Formatting a phone number

require 'uk_phone_numbers'

UKPhoneNumbers.format "02087123456"
# => "020 8712 3456"