PHPackages                             altrntv/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. altrntv/sms-ru

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

altrntv/sms-ru
==============

SMS.RU Notifications channel for Laravel.

v1.0.0(3w ago)00MITPHPPHP &gt;=8.4CI failing

Since May 15Pushed 3w agoCompare

[ Source](https://github.com/altrntv/sms-ru)[ Packagist](https://packagist.org/packages/altrntv/sms-ru)[ Docs](https://github.com/altrntv/sms-ru)[ RSS](/packages/altrntv-sms-ru/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

SmsRu notifications channel for Laravel
=======================================

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

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

Contents
--------

[](#contents)

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

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

[](#installation)

Install this package with Composer:

```
composer require altrntv/sms-ru
```

### Setting up the SmsRu service

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

Add your SmsRu Api ID and Host to your `config/services.php`:

```
...
'smsru' => [
    'api_id'  => env('SMS_RU_API_ID'),
    'host' => env('SMS_RU_API_HOST'),
],
...
```

Usage
-----

[](#usage)

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

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

class OrderStatus extends Notification
{
    public function via(mixed $notifiable): array
    {
        return [
            SmsRuChannel::class,
        ];
    }

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

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(): ?string
{
    return $this->phone;
}
```

### Available Message methods

[](#available-message-methods)

MethodDescription`to()`Set a phone number`from(?string $from)`Sender's name (must be agreed with the administration). If it is not filled in, your default sender will be specified as the sender.`ip(?string $ip)`User's IP address`sendAt(?CarbonInterface $time)`If you need a delayed dispatch, specify the time of dispatch. It is specified in UNIX TIME format (example: 1280307978). It must be no more than 2 months from the date of submitting the request. If the time is less than the current time, the message is sent immediately.`ttl(?int $ttl)`The message lifetime is in minutes (from 1 to 1440).`daytime(bool $daytime = true)`Takes into account the recipient's time zone.`translit(bool $translit = true)`Translates all Russian characters into Latin.`test(bool $test = true)`Simulates sending a message to test your programs for the correct processing of server responses. However, the message itself is not sent and the balance is not spent.`partnerId(?string $partnerId)`If you participate in an affiliate program, specify this parameter in the request and receive a percentage of the cost of the sent messages. Your unique identifier is already specified in the parameter.Changelog
---------

[](#changelog)

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

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

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

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

[](#contributing)

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

Credits
-------

[](#credits)

- [Pavel Dykin](https://github.com/altrntv)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance94

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

25d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28820687?v=4)[Paul](/maintainers/altrntv)[@altrntv](https://github.com/altrntv)

---

Top Contributors

[![altrntv](https://avatars.githubusercontent.com/u/28820687?v=4)](https://github.com/altrntv "altrntv (2 commits)")

---

Tags

laravelnotificationssms.ru

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/altrntv-sms-ru/health.svg)

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

88011.3M149](/packages/spatie-laravel-health)[laravel-notification-channels/pusher-push-notifications

Pusher native Push Notifications driver.

281770.7k1](/packages/laravel-notification-channels-pusher-push-notifications)[salamwaddah/laravel-mandrill-driver

Mandrill notification channel for Laravel 9, 10, 11, 12, 13

1176.4k](/packages/salamwaddah-laravel-mandrill-driver)

PHPackages © 2026

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