Download the PHP package pugofka/laravel-smsru-notification-channel without Composer
On this page you can find all versions of the php package pugofka/laravel-smsru-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pugofka/laravel-smsru-notification-channel
More information about pugofka/laravel-smsru-notification-channel
Files in pugofka/laravel-smsru-notification-channel
Package laravel-smsru-notification-channel
Short Description SmsRu Notifications Driver
License MIT
Homepage https://github.com/pugofka/laravel-smsru-notification-channel
Informations about the package laravel-smsru-notification-channel
SMS notification channel for Laravel
This package makes it easy to send notifications using sms.ru with Laravel.
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
- 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 9.*
illuminate/support Version 9.*
zelenin/smsru Version ~5