CodeIgniter library wrapper for the Twilio API class
Failed to load latest commit information.
config Initial commit Mar 30, 2011
controllers Initial commit Mar 30, 2011
libraries Initial commit Mar 30, 2011
README Added warning that this is no longer supported. Aug 21, 2014


Twilio CodeIgniter Library

by Ben Edmunds

A basic Twilio REST API CodeIgniter library wrapper using the PHP class provided by Twilio.

Sorry I don't use or support this library anymore.  Use at your own risk.  You can check the official PHP SDK here:

Just drop the files in their appropriate folders (ie "libraries/twilio.php" goes in your "libraries" folder) and add your settings in the "config/twilio.php" file.

All calls to the rest class are routed through the library class, so for example:

instead of:
$client = new TwilioRestClient($AccountSid, $AuthToken);
$response = $client->request("/$ApiVersion/Accounts/$AccountSid/Calls", "POST", $data); 

you would do something like:
$this->twilio->request("/$ApiVersion/Accounts/$AccountSid/Calls", "POST", $data);

-Ben Edmunds