LaravelPackages.net
Acme Inc.
Toggle sidebar
codingfoundry/twilio

A package to interact between Laravel and the various Twilio API's

9
0
About codingfoundry/twilio

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

Twilio Wrapper for Laravel

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');

Star History Chart