Download the PHP package laravelnotificationchannels/twilio without Composer
On this page you can find all versions of the php package laravelnotificationchannels/twilio. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravelnotificationchannels/twilio
More information about laravelnotificationchannels/twilio
Files in laravelnotificationchannels/twilio
Package twilio
Short Description A boilerplate for contributions.
License MIT
Homepage https://github.com/laravel-notification-channels/twilio
Informations about the package twilio
Twilio notifications channel for Laravel 5.3+
This package makes it easy to send Twilio notifications with Laravel 5.3.
Contents
- Installation
- Setting up your Twilio account
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Add the service provider (only required on Laravel 5.4 or lower):
Setting up your Twilio account
Add your Twilio Account SID, Auth Token, and From Number (optional) to your config/services.php
:
Usage
Now you can use the channel in your via()
method inside the notification:
You can also send an MMS:
Or create a Twilio call:
In order to let your Notification know which phone are you sending/calling to, the channel will look for the phone_number
attribute of the Notifiable model. If you want to override this behaviour, add the routeNotificationForTwilio
method to your Notifiable model.
Available Message methods
TwilioSmsMessage
from('')
: Accepts a phone to use as the notification sender.content('')
: Accepts a string value for the notification body.
TwilioCallMessage
from('')
: Accepts a phone to use as the notification sender.url('')
: Accepts an url for the call TwiML.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- Gregorio Hernández Caso
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of twilio with dependencies
twilio/sdk Version ~5.16
illuminate/notifications Version 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*
illuminate/support Version 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*
illuminate/events Version 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*
illuminate/queue Version 5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*