International Mobile Number Validation (1 November 2007)

by Iain Dooley | Permalink

explore : Iain Dooley, Iain Dooley, Home Page, SMS, Mobile

Please note: this article has been superceded by this one.

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

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

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!