I’ve been experimenting with the Twilio API recently and have found it very easy to automatically send text messages or call a telephone programatically. In fact, you are able to send a text message in just a few lines of code. Such a service can use used to validate mobile phone numbers for an app, much like how Facebook does.
Using the Twilio PHP library, sending a message can be achieved in a few lines of code.
The above 12 lines of code is enough to send a simple message to any mobile phone. Making a phone is even easier, and I’ll cover that in a later post.