Laravel Twillio SMS API IntegrationLaravel Twillio SMS API Integration
You can install the package via composer:
composer require combindma/laravel-twilio
You can publish the config file with:
php artisan vendor:publish --tag="laravel-twilio-config"
This is the contents of the published config file:
return [
/*
|--------------------------------------------------------------------------
| SID
|--------------------------------------------------------------------------
|
| Your Twilio Account SID #
|
*/
'sid' => env('TWILIO_SID', ''),
/*
|--------------------------------------------------------------------------
| Access Token
|--------------------------------------------------------------------------
|
| Access token that can be found in your Twilio dashboard
|
*/
'token' => env('TWILIO_AUTH_TOKEN', ''),
/*
|--------------------------------------------------------------------------
| From Number
|--------------------------------------------------------------------------
|
| The Phone number registered with Twilio that your SMS & Calls will come from
|
*/
'from' => env('TWILIO_NUMBER', ''),
/*
|--------------------------------------------------------------------------
| Enable
|--------------------------------------------------------------------------
|
| Enable or disable script rendering. Useful for local development.
|
*/
'enabled' => env('TWILIO_ENABLED', true),
];
use Combindma\Twilio\Facades\Twilio;
Twilio::message($phone, $message);
composer test
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.