Download the PHP package atrian/laravel-notification-channel-sms-ru without Composer
On this page you can find all versions of the php package atrian/laravel-notification-channel-sms-ru. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download atrian/laravel-notification-channel-sms-ru
More information about atrian/laravel-notification-channel-sms-ru
Files in atrian/laravel-notification-channel-sms-ru
Package laravel-notification-channel-sms-ru
Short Description This package makes it easy to send notifications using [sms.ru](https://sms.ru) (aka SMSRU) with Laravel 5.5+
License MIT
Homepage https://github.com/fomvasss/laravel-notification-channel-sms-ru
Informations about the package laravel-notification-channel-sms-ru
Smsru notifications channel for Laravel 5.5+
Here's the latest documentation on Laravel's Notifications System:
https://laravel.com/docs/master/notifications
This package makes it easy to send notifications using sms.ru (aka SMSRU) with Laravel 5.5+.
Contents
- Installation
- Setting up the SmsRu service
- Usage
- Available Message methods
- Changelog
- Security
- Contributing
- Credits
- License
Installation
Install this package with Composer:
The service provider gets loaded automatically. Or you can do this manually:
Setting up the SmsRu service
Add your SmsRu apiID, default sender name (or phone number) to your config/services.php
:
Usage
You can use the channel in your via()
method inside the notification:
In your notifiable model, make sure to include a routeNotificationForSmsru()
method, which returns a phone number
or an array of phone numbers.
Available methods
from()
: Sets the sender's name or phone number.
content()
: Set a content of the notification message.
time()
: Example argument = time() + 7*60*60
- Postpone shipping for 7 hours.
translit()
: Text transliteration
test()
: Test SMS sending (free)
from()
: Approved letter sender
parentId()
: You can specify your partner ID if you integrate the code into a foreign system
Changelog
Please see CHANGELOG for more information what has changed recently.
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
- fomvasss
- zelenin/sms_ru
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-notification-channel-sms-ru with dependencies
illuminate/notifications Version ^5.5|^6.0|^7.0|^8.0
illuminate/support Version ^5.5|^6.0|^7.0|^8.0
zelenin/smsru Version ^4.1|^5.0