Hi!
Been doing some basic Twilio implementation for a client to enable them to automatically send text messages to registered users on page publish. As an upshot, I thought I would strip out the site specific work and stick up on github here: https://github.com/benbyford/TwilioChannels
This modules pulls in the Twilio APi and enables you to send SMS messages from your front or backend.
Send SMS message
Truncate message to single message character limit
Auto-select number from range of numbers depending on $To number country of origin–this enables you to send messages with a local number to that user if one added to the config.
Templates usage:
$twilio = $modules->get("TwilioChannels");
$twilio->sendSMS($toNumber, $message);