codingfoundry / twilio
A package to interact between Laravel and the various Twilio API's
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/codingfoundry/twilio
Requires
- twilio/sdk: ^5.37
This package is auto-updated.
Last update: 2025-11-08 03:28:11 UTC
README
Wrapper for Twilio SDK.
Warning
This package is currently in development. Not suggested for production at this time.
Requirements
- Twilio/SDK 5.37
- Laravel 5.7+
Installation
Composer Installation
Install the package through composer in your terminal.
composer require codingfoundry/twilio
Setup The Environment (.env File) for Authentication
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=
Usage
Carrier Lookup
Twilio::carrier_lookup($number);
Requires E.164 Number format. ie. +13334445555
use CodingFoundry\Twilio\Twilio; Twilio::carrier_lookup('+16045554444');
Send SMS
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!');
Send Voice Call
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');