I want to create a PHP app that can send text messages ; There are [different gateways for different email](http://en.wikipedia.org/wiki/SMS_gateways) carriers.

Is there any library I could use that would be able to lookup or detect which gateway to use just by passing the phone number into it? This way I can take whatever email address I get out and use PHP's email functions to send a message.