Download the PHP package tzurbaev/unisender-notifications-channel without Composer
On this page you can find all versions of the php package tzurbaev/unisender-notifications-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tzurbaev/unisender-notifications-channel
More information about tzurbaev/unisender-notifications-channel
Files in tzurbaev/unisender-notifications-channel
Package unisender-notifications-channel
Short Description Unisender Notifications Channel for Laravel
License MIT
Informations about the package unisender-notifications-channel
Unisender Notifications Channel For Laravel 5.5+
Requirements
This package requires PHP 7.1 or higher.
Installation
You can install the package via composer:
Setting up the Unisender Service
Add Unisender API key to the config/services.php
file:
This key will be used as default key for all notifications. You can always override it for concrete notifications.
Documentation
Add UnisenderChannell::class
to notification's via
method and implement toUnisender($notifiable)
method:
Also, your Notifiable
classes must have the routeNotificationForUnisender
method, which should return single phone number (E.164 format) or list of phone numbers (comma-separated or in array).
Available Methods
UnisenderMessage::silent(bool $flag = true)
- sets the 'silent mode' - Channel won't throw any exception while sending SMS;UnisenderMessage::usingAccessToken($token)
- reset token only for the current message;UnisenderMessage::from(string $from)
- set the sender name;UnisenderMessage::content(string $content)
- set the message content.
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
All versions of unisender-notifications-channel with dependencies
illuminate/support Version 5.5.*
illuminate/notifications Version 5.5.*
guzzlehttp/guzzle Version ^6.3