twiliosms

Send SMS - messages all over the world using twilio
7 followers

Send SMS - messages all over the world using twilio

Note: Single class file only for sending sms - messages. Other twilio features are not included.

Requirements

Yii 1.1 or above

PHP 5 above

Usage

Copy the twiliosms folder into protected/extensions/

require_once('/path/to/extensions/twilio/Services/Twilio.php');
 
$sid = "{{ ACCOUNT SID }}"; // Your Account SID from www.twilio.com/user/account
$token = "{{  AUTH TOKEN }}"; // Your Auth Token from www.twilio.com/user/account
 
$client = new Services_Twilio($sid, $token);
$message = $client->account->sms_messages->create(
  '+14158141829', // From a valid Twilio number
  '+14159352345', // Text this number
  "Hello world! This is admin, testing our twilio api"
);

Resources

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads