1. Go to this page and download the library: Download orukusaki/twiml library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
orukusaki / twiml example snippets
use Orukusaki\TwiML\Voice\Response;
$response = new Response();
$response->say('Thanks for your call');
$response->dial('+441473000000')
->withAction('http://www.example.com/twilio/callback');
echo $response;
echo (new Response())->say('Hi');
echo (new Response())
->say('S\'il vous plaît laissez un message')
->withVoice('alice')
->withLanguage('fr-FR')
->end()
->record()
->withAction('http://www.example.com/twilio/recording');
echo (new Response())
->dial('+4400000000')
->with(['timeout' => 10, 'record' => 'record-from-answer']);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.