Download the PHP package ankurk91/bandwidth-notification-channel without Composer
On this page you can find all versions of the php package ankurk91/bandwidth-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ankurk91/bandwidth-notification-channel
More information about ankurk91/bandwidth-notification-channel
Files in ankurk91/bandwidth-notification-channel
Package bandwidth-notification-channel
Short Description Bandwidth SMS notification channel for Laravel php framework.
License MIT
Homepage https://github.com/ankurk91/bandwidth-notification-channel
Informations about the package bandwidth-notification-channel
Bandwidth Notification Channel for Laravel
Send Bandwidth SMS notifications with Laravel php framework.
Installation
You can install the package via composer:
Setting up your Bandwidth account
- Grab your account credentials from Bandwidth
- Add the account credentials in your
.env
and.env.example
file:
Publish the config file (optional)
You can publish the config file into your project.
Usage
You can use the Bandwidth channel in the via()
method inside your Notification class:
Add the routeNotificationForBandwidth
method to your Notifiable model:
Methods available on BandwidthMessage
class
content()
- Accepts a string value for the notification body. (required)from()
- Accepts a phone number to use as the notification sender.media()
- Accepts a URL or array of URLs to be used as MMS.httpBody()
- Accepts anarray
to send along with notification http payload.
Events
- The package utilises Laravel's inbuilt notification events
- You can listen to these events in your project's
EventServiceProvider
like:
Here is the example of failed event listener class:
On-demand notification
You can also use Laravel's on-demand notifications to send push notification to number.
Notes (Taken from API docs)
- The
from
andto
numbers must be inE.164
format, for example+19195551212
. - Message content length must be
2048
characters or less. - Messages larger than
160
characters will be automatically fragmented and re-assembled to fit within the160
character transport constraints.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security issues, please email pro.ankurk1[at]gmail[dot]com
instead of using the issue tracker.
Resources
License
This package is licensed under MIT License.
All versions of bandwidth-notification-channel with dependencies
guzzlehttp/guzzle Version ^7.4
illuminate/http Version ^10 || ^11
illuminate/log Version ^10 || ^11
illuminate/events Version ^10 || ^11
illuminate/notifications Version ^10 || ^11
illuminate/support Version ^10 || ^11