Download the PHP package canerdogan/twilio-notification-channel without Composer
On this page you can find all versions of the php package canerdogan/twilio-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download canerdogan/twilio-notification-channel
More information about canerdogan/twilio-notification-channel
Files in canerdogan/twilio-notification-channel
Package twilio-notification-channel
Short Description A boilerplate for contributions.
License MIT
Homepage https://github.com/canerdogan/twilio
Informations about the package twilio-notification-channel
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:
You must install the service provider:
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 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-notification-channel with dependencies
twilio/sdk Version ^5.16.2
illuminate/notifications Version ^5.3
illuminate/support Version ^5.3
illuminate/events Version ^5.3
illuminate/queue Version ^5.3