Jump to content

Twilio module


Recommended Posts

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);

 

  • Like 7
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...