2017 © Pedro Peláez
 

library laratwilio

Twilio api wrapper for Laravel4

image

twilio/laratwilio

Twilio api wrapper for Laravel4

  • Sunday, January 5, 2014
  • by GeorgeStrakhov
  • Repository
  • 1 Watchers
  • 10 Stars
  • 1,758 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laratwilio

  • simple wrapper for sending sms messages via twilio with Laravel4.
  • calls or anything else other than sending sms messages is not currently supported (pull requests welcome)

Installation

  1. add the following to your composer require:, (*1)

    "twilio/laratwilio": "dev-master"
  2. run from terminal:, (*2)

    composer update
  3. add Laratwilio to the list of providers. In config/app.php add the following line to the providers array:, (*3)

    'Twilio\Laratwilio\LaratwilioServiceProvider'
  4. add a Facade for more convenient usage. In config/app.php add the following line to the aliases array:, (*4)

    'Sms' => 'Twilio\Laratwilio\Facades\Laratwilio'
  5. publish config files so that you can put your Twilio details in the right place. In your terminal:, (*5)

    php artisan config:publish twilio/laratwilio
  6. edit the new config file in the config/packages/twilio/laratwilio and enter your data, (*6)

Usage

Anywhere in your application when you need to send an sms message, just do:, (*7)

Sms::send(array('to'=>'+12345678', 'text'=>'hello world'));

Disclaimer

This is my first package and I'm very new to all this., (*8)

Most likely I'm doing lots of things wrong. Use at your own risk., (*9)

If there is a better way of doing anything here - I'm looking forward to your pull requests., (*10)

May the force be with you., (*11)

The Versions

05/01 2014

dev-master

9999999-dev http://github.com/GeorgeStrakhov/Laratwilio

Twilio api wrapper for Laravel4

  Sources   Download

MIT

The Requires

 

by George Strakhov

laravel sms twilio