Skip to content

A Ruby library for validating and formatting UK phone numbers.

License

Notifications You must be signed in to change notification settings

isabella232/uk_phone_numbers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

A Ruby library for validating and formatting UK phone numbers.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%