PHP code example of shaz3e / twilio

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

    

shaz3e / twilio example snippets

bash
php artisan vendor:publish --tag=twilio-config



return [
    'twilio_sid' => env('TWILIO_ACCOUNT_SID'),
    'twilio_token' => env('TWILIO_AUTH_TOKEN'),
    'twilio_from' => env('TWILIO_SMS_FROM'),
];



use Shaz3e\Twilio\Facades\Twilio;

$sendSms = Twilio::notify('+123456789', 'Hello')

return $sendSms;



use Shaz3e\Twilio\Facades\Twilio;

$sendWhatsApp = Twilio::notifyWhatsApp('+123456789', 'Hello')

return $sendWhatsApp;