Skip to content

Medboubazine/twillio-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentations

  • Send Sms
<?php

use Medboubazine\Twilio\Twilio;

require_once("./vendor/autoload.php");


$twilio = new 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;
//

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages