PHPackages                             hanymigame/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. [Mail &amp; Notifications](/categories/mail)
4. /
5. hanymigame/laravel-notification-channel-sms-ru

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

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

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

0261PHP

Since Dec 2Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Smsru notifications channel for Laravel 7.0+
============================================

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

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

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 hanymigame/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

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

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

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

---

Top Contributors

[![HanymiGame](https://avatars.githubusercontent.com/u/118646369?v=4)](https://github.com/HanymiGame "HanymiGame (3 commits)")

### Embed Badge

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

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

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

PHPackages © 2026

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