Skip to content

The twilio-php library specially packaged for use as a standard Joomla library. Call jimport('twilio.services.twilio'); to register the autoloader.

License

Notifications You must be signed in to change notification settings

corywebbmedia/Twilio-for-Joomla

Repository files navigation

Twilio for Joomla

This project takes the twilio-php library and specifically packages it as a standard Joomla library. To register the twilio-php autoloader in your extension, simply load it through jimport():

<?php
defined( '_JEXEC' ) or die;

jimport('twilio.services.twilio');

After calling this, you can use the twilio-php library exactly as you would stand-alone:

<?php
defined( '_JEXEC' ) or die;

jimport('twilio.services.twilio');

$sid = "ACXXXXXX"; // Your Account SID from www.twilio.com/user/account
$token = "YYYYYY"; // Your Auth Token from www.twilio.com/user/account

$client = new Services_Twilio($sid, $token);
$call = $client->account->calls->create(
  '9991231234', // From a valid Twilio number
  '8881231234', // Call this number

  // Read TwiML at this URL when a call connects (hold music)
  'http://twimlets.com/holdmusic?Bucket=com.twilio.music.ambient'
);

More details and documentaion can be found at https://github.com/twilio/twilio-php.

About

The twilio-php library specially packaged for use as a standard Joomla library. Call jimport('twilio.services.twilio'); to register the autoloader.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published