Download the PHP package edemsky/sms-ru without Composer
On this page you can find all versions of the php package edemsky/sms-ru. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download edemsky/sms-ru
More information about edemsky/sms-ru
Files in edemsky/sms-ru
Package sms-ru
Short Description SMS notifications channel for Laravel 10-13.
License MIT
Homepage https://github.com/edemsky/sms-ru
Informations about the package sms-ru
Smsc notifications channel for Laravel 10-13
This package makes it easy to send notifications with Laravel 10-13.
Supported versions:
- Laravel 10-13
- PHP 8.1-8.4
Contents
- Installation
- Setting up the SmscRu service
- Usage
- Available Message methods
- Changelog
- Testing
- 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 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 sms, 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 routeNotificationForSms() 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 sms-ru with dependencies
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.5
illuminate/queue Version ^10.0|^11.0|^12.0|^v13.0
illuminate/notifications Version ^10.0|^11.0|^12.0|^v13.0
illuminate/support Version ^10.0|^11.0|^12.0|^v13.0