PHP code example of parfumix / laravel5-twilio

1. Go to this page and download the library: Download parfumix/laravel5-twilio 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/ */

    

parfumix / laravel5-twilio example snippets


 'Twilio\Laravel5TwilioServiceProvider',

'Twilio'    => 'Twilio\Facades\Twilio',

php artisan vendor:publish



Use Twilio;

Twilio::sms('+18085551212', 'Message text');



Use Twilio;

Twilio::call('+18085551212', 'http://foo.com/call.xml');