PHP code example of misaf / laravel-sms-gateway-twilio
1. Go to this page and download the library: Download misaf/laravel-sms-gateway-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/ */
misaf / laravel-sms-gateway-twilio example snippets
use Misaf\LaravelSmsGateway\Facades\SmsGateway;
$response = SmsGateway::driver()->send([
'To' => '+15005550006',
'From' => '+15005550001',
'Body' => 'Hello from Twilio',
]);
SmsGateway::driver('twilio')->send($data); // regardless of the default
SmsGateway::driver('twilio')->request()->get('some/endpoint'); // any other endpoint