PHP code example of medboubazine / twilio
1. Go to this page and download the library: Download medboubazine/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/ */
medboubazine / twilio example snippets
use Medboubazine\Twilio\Twilio;
//ACCOUNT SID
'client_id'=>"your ACCOUNT SID",
//AUTH TOKEN
'client_secret'=>"your AUTH TOKEN",
//Phone NUMBER
'number'=>"Your number in twillio",
]);
//Reciever phone number on international format
$to = "+213550505050";
//your sms body
$body = "your message body";
//send message
$message = $twilio->sendSms($to,$body);
//
$message->sid;
//