PHP version of Google's phone number handling library