2017 © Pedro Peláez
 

library laravel-twilio

Twilio API for Laravel 5.4

image

johnpaulmedina/laravel-twilio

Twilio API for Laravel 5.4

  • Sunday, February 11, 2018
  • by johnpaulmedina
  • Repository
  • 2 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 100 % Grown

The README.md

laravel5-twilio

Laravel 5 Twillio API Integration, (*1)

  • twilio:sms
  • twilio:call

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require johnpaulmedina/twilio and the repository (only until we publish on packagist)., (*2)

"require": {
    ...
    "johnpaulmedina/twilio": "2.0.*",
},
"repositories": [
    {
        "type": "vcs",
        "url":  "git@github.com:johnpaulmedina/laravel-twilio.git"
    }
]

Next, update Composer from the Terminal:, (*3)

composer update

Once composer is finished, you need to add the service provider. Open config/app.php, and add a new item to the providers array., (*4)

'Jp\Twilio\TwilioServiceProvider',

Then, add a Facade for more convenient usage. In config/app.php add the following line to the aliases array:, (*5)

'Twilio' => 'Jp\Twilio\Facades\Twilio',

Add the configuration to config/services.php, (*6)

'twilio' => [
    'sid' => 'Your Twilio Account SID #',
    'token' => 'Access token that can be found in your Twilio dashboard',
    'from' => 'The Phone number registered with Twilio that your SMS & Calls will come from',
    'ssl_verify' => true, // Development switch to bypass API SSL certificate verfication
]

Usage

Sending a SMS Message, (*7)


Creating a Call, (*8)


Generating TwiML, (*9)

say('Hello');
    $message->play('https://api.twilio.com/cowbell.mp3', array('loop' => 5));
});

print $twiml;

?>

License

laravel5-twilio is open-sourced software licensed under the MIT license, (*10)

Credits

Based on the original Laravel 4 package by Travis J Ryan that can be found here:, (*11)

https://github.com/aloha/laravel4-twilio, (*12)

The Versions

11/02 2018

dev-master

9999999-dev https://github.com/johnpaulmedina/laravel-twilio/

Twilio API for Laravel 5.4

  Sources   Download

MIT

The Requires

 

by John Paul Medina

sms laravel5 ivr twilio

14/04 2016

5.2.x-dev

5.2.9999999.9999999-dev https://github.com/johnpaulmedina/laravel-twilio/

Twilio API for Laravel 5

  Sources   Download

MIT

The Requires

 

by John Paul Medina

sms laravel5 ivr twilio