Skip to content

blt/PhoneNumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhoneNumber

Google's libphonenumber is fantastic. Being that I needed a Scala extractor for use against phone numbers I wrote this wrapper. It has neither the feature set or the utility of the original; it's quick and easy, drop in and go.

Patches welcome.

Installation

Add the following to your project description:

val troutwineRepo = "troutwine.us repository" at "http://maven.troutwine.us/"
val phone = "us.troutwine" %% "phonenumber" % "0.2.7"

Builds are available for Scala 2.9.0

Example

scala> import us.troutwine.phonenumber.USPhoneNumber
import us.troutwine.phonenumber.USPhoneNumber

scala> "(541) 719-8703" match { case USPhoneNumber(norm) => println(norm) }
+15417198703

Acknowledgments

This project has been an outgrowth of my work with the kind folks at FluentStream Technologies.

About

A mildly useful Scala wrapper over libphonenumber

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published