Download the PHP package davidnadejdin/sms-ru without Composer
On this page you can find all versions of the php package davidnadejdin/sms-ru. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download davidnadejdin/sms-ru
More information about davidnadejdin/sms-ru
Files in davidnadejdin/sms-ru
Download davidnadejdin/sms-ru
More information about davidnadejdin/sms-ru
Files in davidnadejdin/sms-ru
Vendor davidnadejdin
Package sms-ru
Short Description Package for send sms via sms.ru. Based on official PHP class https://sms.ru/php
License MIT
Package sms-ru
Short Description Package for send sms via sms.ru. Based on official PHP class https://sms.ru/php
License MIT
Keywords laravel
Please rate this library. Is it a good library?
Informations about the package sms-ru
Laravel SMS.ru notifications
Install
composer require davidnadejdin/sms-ru
Usage
Package for send sms via sms.ru This is package provide Channel and base Notification.
Create file config/sms-ru.php
with content: (For details please read documentation http://sms.ru/php):
Examples:
notify method (notifiable should have phone property):
use CodersStudio\SmsRu\Notifications\SmsRu;
...
$user->notify(new SmsRu('test'));
In Notification:
public function via($notifiable)
{
return [SmsRuChannel::class];
}
public function toSms($notifiable)
{
return [
'phone' => $this->phone,
'message' => $this->message
];
}
Facade:
SmsRu::send(['89881234567'], 'test'); // return bool
Credits
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
All versions of sms-ru with dependencies
PHP Build Version
Package Version
Requires
laravel/framework Version
^7.0|^8.0|^9.0|^10.0|^11.0
The package davidnadejdin/sms-ru contains the following files
Loading the files please wait ....