<?php

// Get the PHP helper library from twilio.com/docs/php/install
require_once '/path/to/vendor/autoload.php';
// Loads the library
use Twilio\Rest\Client;
// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "your_auth_token";
$client = new Client($sid, $token);
// Get an object from its sid. If you do not have a sid,
// check out the list resource examples on this page
$app = $client->applications("AP2a0747eba6abf96b7e3c3ff0b4530f6e")->update(array("voiceUrl" => "http://demo.twilio.com/docs/voice.xml", "smsUrl" => "http://demo.twilio.com/docs/sms.xml"));
echo $app->voiceUrl;
<?php

// Get the PHP helper library from twilio.com/docs/php/install
require_once '/path/to/vendor/autoload.php';
// Loads the library
use Twilio\Rest\Client;
// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "your_auth_token";
$client = new Client($sid, $token);
// Get an object from its sid. If you do not have a sid,
// check out the list resource examples on this page
$app = $client->applications("AP2a0747eba6abf96b7e3c3ff0b4530f6e")->fetch();
echo $app->smsUrl;