PHPackages                             webregul/laravel-sms-ru-channel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. webregul/laravel-sms-ru-channel

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

webregul/laravel-sms-ru-channel
===============================

Laravel sms.ru channel

v2.0.0(3y ago)1158↓50%1MITPHPPHP ^8.0

Since Mar 20Pushed 3y agoCompare

[ Source](https://github.com/WebRegul/laravel-sms-ru-channel)[ Packagist](https://packagist.org/packages/webregul/laravel-sms-ru-channel)[ Docs](https://github.com/WebRegul/laravel-sms-ru-channel)[ RSS](/packages/webregul-laravel-sms-ru-channel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

SmsRu notification channel for Laravel
--------------------------------------

[](#smsru-notification-channel-for-laravel)

[![test](https://github.com/kafkiansky/laravel-sms-ru-channel/workflows/test/badge.svg?event=push)](https://github.com/kafkiansky/laravel-sms-ru-channel/workflows/test/badge.svg?event=push)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Quality Score](https://camo.githubusercontent.com/296a30c233cd5da9014cb6a8b29949b4a3bca3223d3c0a36da0c73f1479b96f8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6b61666b69616e736b792f6c61726176656c2d736d732d72752d6368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/kafkiansky/laravel-sms-ru-channel)[![StyleCI](https://camo.githubusercontent.com/f8067738447234422f54c651d691d50ffe85041c49d5eb31cfb182ed569426f4/68747470733a2f2f7374796c6563692e696f2f7265706f732f3236313533353730362f736869656c64)](https://styleci.io/repos/261535706)[![Total Downloads](https://camo.githubusercontent.com/0a7432bb7914c665ddbd7384a0e97806a9f1101b88e0b38f1f8e054e82466db1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b61666b69616e736b792f6c61726176656c2d736d732d72752d6368616e6e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kafkiansky/laravel-sms-ru-channel)[![Codecov](https://camo.githubusercontent.com/e0871e71e5aa91b43f5472005c997a19d0d1e3974f7a6e35f97189abfd3e11c6/68747470733a2f2f636f6465636f762e696f2f67682f6b61666b69616e736b792f6c61726176656c2d736d732d72752d6368616e6e656c2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/kafkiansky/laravel-sms-ru-channel)

Content
-------

[](#content)

- [Installation](#installation)
- [Usage](#usage)
    - [Configuration](#configuration)
    - [How to](#how-to)
- [Testing](#testing)
- [License](#license)

Installation
------------

[](#installation)

Install package with Composer:

```
composer require webregul/laravel-sms-ru-channel
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

Register provider:

```
// config/app.php
'providers' => [
    ...
    Kafkiansky\SmsRuChannel\SmsRuProvider::class,
],
```

Add configuration in `config/services.php`:

```
// config/services.php

'sms_ru' => [
    'api_id' => env('SMS_RU_API_ID'),
    'login'  => env('SMS_RU_LOGIN', null),
    'password' => env('SMS_RU_PASSWORD', null),
    'partner_id' => env('SMS_RU_PARTNER', null),
    'test' => env('SMS_RU_TEST', 1),
    'json' => env('SMS_RU_JSON', 1),
    'from' => env('SMS_RU_FROM', null),
],
```

Read more about configuration on official [site](https://sms.ru/api/send).

### How to

[](#how-to)

#### First way

[](#first-way)

Create notification message:

```
use Illuminate\Notifications\Notification;
use Kafkiansky\SmsRu\Message\SmsRuMessage;
use Kafkiansky\SmsRu\Message\To;
use Kafkiansky\SmsRuChannel\SmsRuChannel;

final class RegistrationComplete extends Notification
{
    public function via($notifiable)
    {
        return [SmsRuChannel::class];
    }

    public function toSmsRu($notifiable)
    {
        return new SmsRuMessage(new To($notifiable->phone, 'Congratulations, you have become part of our application'));
    }
}
```

#### Second way

[](#second-way)

Or create `routeNotificationForSmsRu` method in notifiable instance:

```
use Illuminate\Notifications\Notifiable;

/**
 * @property string $phone
 */
class User
{
    use Notifiable;

    public function routeNotificationForSmsRu()
    {
        return $this->phone; // can be array of phone numbers
    }
}
```

In this case notification message should look like this:

```
use Illuminate\Notifications\Notification;
use Kafkiansky\SmsRuChannel\SmsRuChannel;

final class RegistrationComplete extends Notification
{
    public function via($notifiable)
    {
        return [SmsRuChannel::class];
    }

    public function toSmsRu($notifiable)
    {
        return 'Congratulations, you have become part of our application';
    }
}
```

Testing
-------

[](#testing)

```
$ composer test
```

License
-------

[](#license)

The MIT License (MIT). See [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~15 days

Total

4

Last Release

1105d ago

Major Versions

v1.0.3 → v2.0.02023-05-03

PHP version history (2 changes)v1.0.1PHP ^7.2

v2.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d081a186978d91981ca1f659d5e0ddf67b741edab92cfb994efb3cd9f27708e?d=identicon)[WebRegul](/maintainers/WebRegul)

---

Top Contributors

[![kafkiansky](https://avatars.githubusercontent.com/u/37590388?v=4)](https://github.com/kafkiansky "kafkiansky (14 commits)")[![WebRegul](https://avatars.githubusercontent.com/u/17101107?v=4)](https://github.com/WebRegul "WebRegul (5 commits)")[![x2e8](https://avatars.githubusercontent.com/u/95776582?v=4)](https://github.com/x2e8 "x2e8 (2 commits)")

---

Tags

laravelsms.ru

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webregul-laravel-sms-ru-channel/health.svg)

```
[![Health](https://phpackages.com/badges/webregul-laravel-sms-ru-channel/health.svg)](https://phpackages.com/packages/webregul-laravel-sms-ru-channel)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[therobfonz/laravel-mandrill-driver

Mandrill Driver for Laravel

773.5M](/packages/therobfonz-laravel-mandrill-driver)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
