PHPackages                             pugofka/laravel-smsru-notification-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. pugofka/laravel-smsru-notification-channel

ActiveLibrary

pugofka/laravel-smsru-notification-channel
==========================================

SmsRu Notifications Driver

1.0.0(3y ago)08MITPHPPHP &gt;=8.0

Since Jul 29Pushed 3y agoCompare

[ Source](https://github.com/pugofka/laravel-smsru-notification-channel)[ Packagist](https://packagist.org/packages/pugofka/laravel-smsru-notification-channel)[ Docs](https://github.com/pugofka/laravel-smsru-notification-channel)[ RSS](/packages/pugofka-laravel-smsru-notification-channel/feed)WikiDiscussions master Synced 1mo ago

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

SMS notification channel for Laravel
====================================

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

This package makes it easy to send notifications using [sms.ru](https://sms.ru/) with Laravel.

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the configuration](#setting-up-the-configuration)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install this package via composer:

```
composer require pugofka/laravel-smsru-notification-channel
```

Next add the service provider to your `config/app.php`:

```
...
'providers' => [
    ...
     NotificationChannels\SmsRu\SmsRuServiceProvider::class,
],
...
```

### Setting up the configuration

[](#setting-up-the-configuration)

Add your API ID (secret key) and default sender name to your `config/services.php`:

```
// config/services.php
...
'smsru' => [
    'api_id' => env('SMSRU_API_ID'),
    'sender' => 'John_Doe'
],
...
```

Usage
-----

[](#usage)

Now you can use the channel in your `via()` method inside the notification:

```
use NotificationChannels\SmsRu\SmsRuChannel;
use NotificationChannels\SmsRu\SmsRuMessage;
use Illuminate\Notifications\Notification;

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

    public function toSmsRu($notifiable)
    {
        return SmsRuMessage::create('message text');
    }
}
```

In order to let your Notification know which phone number you are targeting, add the `routeNotificationForSmsRu` method to your Notifiable model.

### Available message methods

[](#available-message-methods)

- `from()`: Sets the sender's name.
- `text()`: Sets a text of the notification message.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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

Unknown

Total

1

Last Release

1384d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e1c808ca95fe769b86d27804b136e60e99cc1b2b5d9440f0cc7868b8ad9a55ec?d=identicon)[yushkevichv](/maintainers/yushkevichv)

---

Top Contributors

[![enniel](https://avatars.githubusercontent.com/u/19760944?v=4)](https://github.com/enniel "enniel (5 commits)")[![yushkevichv](https://avatars.githubusercontent.com/u/2371017?v=4)](https://github.com/yushkevichv "yushkevichv (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pugofka-laravel-smsru-notification-channel/health.svg)

```
[![Health](https://phpackages.com/badges/pugofka-laravel-smsru-notification-channel/health.svg)](https://phpackages.com/packages/pugofka-laravel-smsru-notification-channel)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/webpush

Web Push Notifications driver for Laravel.

7984.5M16](/packages/laravel-notification-channels-webpush)[s-ichikawa/laravel-sendgrid-driver

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

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)

PHPackages © 2026

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