International Mobile Number Validation

1 Nov2007

UPDATE August 19, 2008 11:22 GMT+11: This article has been superceded by an update with more permanent URLs: International Mobile Number Validation PT II

Validating mobile phone numbers in international format isn't all that easy. Numbering plans are disparate and constantly changing.

I've come up with a parseable file format which is published here:

http://www.workingsoftware.com.au/mobile_numbering.txt (ed: This link is broken, an updated link is available in the follow up post International Mobile Number Validation PT II)

I've written a class file in PHP (5 only) that reads this file and allows you to validate a number:

http://www.workingsoftware.com.au/mobile_validation.class.php.txt (ed: This link is broken, an updated link is available in the follow up post International Mobile Number Validation PT II)

There's documentation at the top of both those pages I won't bother repeating here.

I think the only way we can make this work is to have it collaboratively maintained. I've proposed that the project be hosted at http://www.kannel.org.

Please feel free to contact me or subscribe to users@kannel.org if you would like to discuss this further. Together, we can validate!

This entry was posted on Thursday, November 1st, 2007 at 3:20 pm author iain dooley, sms, mobile, mobiles

blog comments powered by Disqus

Subscribe

Subscribe via RSS

Building software in the real world - the Working Software blog

We write about our experiences, ideas and interests in business, software and the business of software. We also sometimes write about our own products (in order to promote them).