A package to interact between Laravel and the various Twilio API's
codingfoundry/twilio is a Laravel package for a package to interact between laravel and the various twilio api's.
It currently has 0 GitHub stars and 9 downloads on Packagist.
Install it with composer require codingfoundry/twilio.
Discover more Laravel packages by codingfoundry
or browse all Laravel packages to compare alternatives.
Last updated
Wrapper for Twilio SDK.
This package is currently in development. Not suggested for production at this time.
Install the package through composer in your terminal.
composer require codingfoundry/twilio
Add these details to your .env environment file with your own details as appropriate.
Each Environment Variable is REQUIRED for a successful connection.
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_PHONE_NUMBER=
Twilio::carrier_lookup($number);
Requires E.164 Number format. ie. +13334445555
use CodingFoundry\Twilio\Twilio;
Twilio::carrier_lookup('+16045554444');
Twilio::send_sms($number, $body);
Requires E.164 Number format. ie. +13334445555
use CodingFoundry\Twilio\Twilio;
Twilio::send_sms('+16045554444', 'This is my test sms text message!');
Twilio::send_voice($number, $url);
Requires E.164 Number format. ie. +13334445555
use CodingFoundry\Twilio\Twilio;
Twilio::send_voice('+16045554444', 'https://handler.twilio.com/twiml/EH35432d6423462aa4a4912d00d4cbd2564');