| Package Data | |
|---|---|
| Maintainer Username: | parfumix |
| Maintainer Contact: | radu.bordei89@gmail.com (Radu) |
| Package Create Date: | 2015-02-06 |
| Package Last Update: | 2017-02-22 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-14 03:03:49 |
| Package Statistics | |
|---|---|
| Total Downloads: | 892 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 4 |
| Total Watchers: | 2 |
| Total Forks: | 3 |
| Total Open Issues: | 3 |
Begin by installing this package through Composer. Run this command from the Terminal:
composer require parfumix/laravel5-twilio
To wire this up in your Laravel project, you need to add the service provider. Open app/config/app.php, and add a new item to the providers array.
'Twilio\Laravel5TwilioServiceProvider',
Then, add a Facade for more convenient usage. In app/config/app.php add the following line to the aliases array:
'Twilio' => 'Twilio\Facades\Twilio',
To add new connections just publish your config file using command and go to your config folder.
php artisan vendor:publish
Sending a SMS Message
<?php
Use Twilio;
Twilio::sms('+18085551212', 'Message text');
Creating a Call
<?php
Use Twilio;
Twilio::call('+18085551212', 'http://foo.com/call.xml');
laravel-twilio is open-sourced software licensed under the MIT license