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

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

enniel/laravel-smsru-notification-channel
=========================================

SmsRu Notifications Driver

0.0.1(9y ago)411.4k1MITPHPPHP &gt;=5.6.4

Since Oct 3Pushed 9y ago1 watchersCompare

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

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

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

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

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

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 enniel/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)

- [Evgeni Razumov](https://github.com/enniel)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

3558d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4205ff91a30f69f387f3f31465b7ff65f389839fc2f3215cd0b1bd9ba1727a0c?d=identicon)[enniel](/maintainers/enniel)

---

Top Contributors

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

---

Tags

laravelnotificationsms

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel-notification-channels/webpush

Web Push Notifications driver for Laravel.

9005.5M26](/packages/laravel-notification-channels-webpush)[spatie/laravel-health

Monitor the health of a Laravel application

87511.3M155](/packages/spatie-laravel-health)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2022.1M6](/packages/laravel-notification-channels-apn)[illuminate/mail

The Illuminate Mail package.

5910.6M479](/packages/illuminate-mail)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1613.4M11](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2401.4M14](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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