<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once 'twilio/autoload.php'; // Loads the library
use Twilio\Rest\Client;
// Your account details via twilio.com/user/account
$sid = "xxxxxxxxxxxxxxxxxx"; //Account Sid
$token = "xxxxxxxxxxxxxxxxxx"; //Auth Token
$client = new Client($sid, $token);
$client->messages->create(
'+xxxxxxxxx', //Destination number
array(
'from' => '+xxxxxxxxx', //Source (twilio) number
'body' => "Message" //Message to be delivered
)
);
?>