Download the PHP package laravel-notification-channels/smsc-ru without Composer
On this page you can find all versions of the php package laravel-notification-channels/smsc-ru. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-notification-channels/smsc-ru
More information about laravel-notification-channels/smsc-ru
Files in laravel-notification-channels/smsc-ru
Package smsc-ru
Short Description SmscRu Notifications channel for Laravel 5.3.
License MIT
Homepage https://github.com/laravel-notification-channels/smsc-ru
Informations about the package smsc-ru
Smsc notifications channel for Laravel 5.3+
This package makes it easy to send notifications using smsc.ru (aka СМС–Центр) with Laravel 5.3+.
Contents
- Installation
- Setting up the SmscRu service
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
Install this package with Composer:
If you're using Laravel 5.x you'll also need to specify a version constraint:
The service provider gets loaded automatically. Or you can do this manually:
Setting up the SmscRu service
Add your SmscRu login, secret key (hashed password) and default sender name (or phone number) to your config/services.php
:
If you want use other host than
smsc.ru
, you MUST set custom host WITH trailing slash.
Usage
You can use the channel in your via()
method inside the notification:
In your notifiable model, make sure to include a routeNotificationForSmscru()
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.
sendAt()
: Set a time for scheduling the notification message.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
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
- JhaoDa
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of smsc-ru with dependencies
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.0.1
illuminate/queue Version 5.1 - 5.8|^6.0|^7.0|^8.0|^9.0|^10.0
illuminate/notifications Version 5.1 - 5.8|^6.0|^7.0|^8.0|^9.0|^10.0
illuminate/support Version 5.1 - 5.8|^6.0|^7.0|^8.0|^9.0|^10.0