Download the PHP package enniel/laravel-smsru-notification-channel without Composer
On this page you can find all versions of the php package enniel/laravel-smsru-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download enniel/laravel-smsru-notification-channel
More information about enniel/laravel-smsru-notification-channel
Files in enniel/laravel-smsru-notification-channel
Package laravel-smsru-notification-channel
Short Description SmsRu Notifications Driver
License MIT
Homepage https://github.com/enniel/laravel-smsru-notification-channel
Informations about the package laravel-smsru-notification-channel
SMS notification channel for Laravel 5.3
This package makes it easy to send notifications using sms.ru with Laravel 5.3.
Contents
- Installation
- Setting up the configuration
- Usage
- Available Message methods
- Changelog
- Testing
- Contributing
- Credits
- License
Installation
You can install this package via composer:
Next add the service provider to your config/app.php
:
Setting up the configuration
Add your API ID (secret key) and default sender name to your config/services.php
:
Usage
Now you can use the channel in your via()
method inside the notification:
In order to let your Notification know which phone number you are targeting, add the routeNotificationForSmsRu
method to your Notifiable model.
Available message methods
from()
: Sets the sender's name.text()
: Sets a text of the notification message.
Testing
Contributing
Please see CONTRIBUTING for details.
Credits
- Evgeni Razumov
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-smsru-notification-channel with dependencies
illuminate/notifications Version ^5.3
illuminate/support Version ^5.1|^5.2|^5.3
zelenin/smsru Version ~4.1.0