PHPackages                             fonclub/laravel-notification-channel-sms-ru - 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. fonclub/laravel-notification-channel-sms-ru

ActiveLibrary

fonclub/laravel-notification-channel-sms-ru
===========================================

This package makes it easy to send notifications using \[sms.ru\](https://sms.ru) (aka SMSRU) with Laravel 5.5+ (fomvasss/laravel-notification-channel-sms-ru fork)

1.5.0(2y ago)1812↓100%3MITPHPPHP &gt;=7.2

Since Oct 7Pushed 2y agoCompare

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

READMEChangelog (2)Dependencies (5)Versions (5)Used By (0)

Smsru notifications channel for Laravel 5.5+
============================================

[](#smsru-notifications-channel-for-laravel-55)

Here's the latest documentation on Laravel's Notifications System:

[![Latest Version on Packagist](https://camo.githubusercontent.com/4e5022f98b7d810ffdcc5e26cb68fddc6ca00bdf5a4b33c9d9acda2688c5c61c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666f6d76617373732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c2d736d732d72752e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fomvasss/laravel-notification-channel-sms-ru)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/745beaeb249d3699c8eda88be1b29ad64fef649c78f172ee304bd6b72a48c4ef/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f666f6d76617373732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c2d736d732d72752f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/fomvasss/laravel-notification-channel-sms-ru)[![StyleCI](https://camo.githubusercontent.com/768a6041e6d9e1d5da89e64c3e785631240f2736770dfa68d509c42a321135da/68747470733a2f2f7374796c6563692e696f2f7265706f732f3a7374796c655f63695f69642f736869656c64)](https://styleci.io/repos/:style_ci_id)[![SensioLabsInsight](https://camo.githubusercontent.com/7a395d7551140767a9f38f838e0e96b367bae56234402374185cd65ee8d795a1/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f3a73656e73696f5f6c6162735f69642e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/:sensio_labs_id)[![Quality Score](https://camo.githubusercontent.com/08272cb722fe194a6af267bbe3e2f9e643f1cf1d0b547980ef0b6a5e3980b97d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f666f6d76617373732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c2d736d732d72752e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/fomvasss/laravel-notification-channel-sms-ru)[![Code Coverage](https://camo.githubusercontent.com/0474c271fa1003b9b69b79c47930fa328dbab4606d36d2337cb611f09837645c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f666f6d76617373732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c2d736d732d72752f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/fomvasss/laravel-notification-channel-sms-ru/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/3cd9ec5d5b63be0a997a23e2a4f750fea2ff4b9eb08b366018aa010946ee43ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666f6d76617373732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c2d736d732d72752e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fomvasss/laravel-notification-channel-sms-ru)

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

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the SmsRu service](#setting-up-the-SmsRu-service)
- [Usage](#usage)
    - [Available Message methods](#available-methods)
- [Changelog](#changelog)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

Install this package with Composer:

```
composer require fomvasss/laravel-notification-channel-sms-ru
```

The service provider gets loaded automatically. Or you can do this manually:

```
// config/app.php
'providers' => [
    ...
    NotificationChannels\SmsRu\SmsRuServiceProvider::class,
],
```

### Setting up the SmsRu service

[](#setting-up-the-smsru-service)

Add your SmsRu apiID, default sender name (or phone number) to your `config/services.php`:

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

Usage
-----

[](#usage)

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

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

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

    public function toSmsru($notifiable)
    {
        return (new SmsRuMessage())->content("Hello SMS!!!")->test(true)->translit(false);
    }
}
```

In your notifiable model, make sure to include a `routeNotificationForSmsru()` method, which returns a phone number or an array of phone numbers.

```
public function routeNotificationForSmsru()
{
    return $this->phone;
}
```

### Available methods

[](#available-methods)

`from()`: Sets the sender's name or phone number.

`content()`: Set a content of the notification message.

`time()`: Example argument = `time() + 7*60*60` - Postpone shipping for 7 hours.

`translit()`: Text transliteration

`test()`: Test SMS sending (free)

`from()`: Approved letter sender

`parentId()`: You can specify your partner ID if you integrate the code into a foreign system

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

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

[](#contributing)

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

Credits
-------

[](#credits)

- [fomvasss](https://github.com/fomvasss)
- [zelenin/sms\_ru](https://github.com/zelenin/sms_ru)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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 ~461 days

Total

4

Last Release

1026d ago

### Community

Maintainers

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

---

Top Contributors

[![fonclub](https://avatars.githubusercontent.com/u/6120785?v=4)](https://github.com/fonclub "fonclub (3 commits)")[![fomvasss](https://avatars.githubusercontent.com/u/19834478?v=4)](https://github.com/fomvasss "fomvasss (2 commits)")

---

Tags

laravelnotificationssmssms.rusms-ru

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

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

PHPackages © 2026

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