PHP code example of innoboxrr / twilio-sdk

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

    

innoboxrr / twilio-sdk example snippets


$sid = 'AC28xxxxxxxxxxxxxxxxxxxxxxxxxx6ff';

$token = '82694xxxxxxxxxxxxxxxxxxxxxxxxd7df5';

$nombreTienda = "Sra. Nancy Guadalupe";

$fechaVisita = '3 de junio de 2023 a las 14:00';

$urlReseña = "https://innoboxrr.com/review?code=16815159";

$from = '120xxxxxxx9';

$to = '527xxxxxxx9';

$message = <<<EOL
Su Código de confirmación es 1524568
EOL;

$res = Sms::init(['sid' => $sid, 'token' => $token])
    ->from($from)
    ->to($to)
    ->message($message)
    ->sendMessage();

$res = Whatsapp::init(['sid' => $sid, 'token' => $token])
    ->from($from)
    ->to($to)
    ->message($message)
    ->sendMessage();

dd($res);