grosv / laravel-twilio
Laravel 6+ wrapper for the Twilio SDK
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 5
pkg:composer/grosv/laravel-twilio
Requires
- php: ^7.4
- illuminate/support: >=7.0
- twilio/sdk: ^6.0
Requires (Dev)
- orchestra/testbench: ^5.0
This package is auto-updated.
Last update: 2025-09-29 02:28:52 UTC
README
This package is a work in progress. It's not ready to be used in production.
Installation
composer require grosv/laravel-twilio
Usage
Set up your credentials in .env
TWILIO_SID=your_twilio_sid TWILIO_TOKEN=your_twilio_token TWILIO_FROM=+1XXXXXXXXXX TWILIO_SANDBOX_TO=+1XXXXXXXXXX TWILIO_SANDBOX=true
When TWILIO_SANDBOX is set to true all text messages will go to your TWILIO_SANDBOX_TO phone number. When you are ready to go live, set it to false.
Send a text message:
use Grosv\LaravelTwilio\Twilio; // sendSMS($message, $to, $from = env('TWILIO_FROM')) $sent = (new Twilio())->sendSMS('Lorem instagram emoji', '+1XXXXXXXXXX');
more to come...