PHP code example of dotunj / laratwilio

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

    

dotunj / laratwilio example snippets



    return [
    'account_sid' => env('TWILIO_ACCOUNT_SID'),
    'auth_token' => env('TWILIO_AUTH_TOKEN'),
    'sms_from' => env('TWILIO_SMS_FROM'),
   ];



use Dotunj\LaraTwilio\Facades\LaraTwilio;

$sendSms = LaraTwilio::notify('+2341234567892', 'Hello')

return $sendSms;