PHPackages                             alekseyshavrak/laravel-smsru - 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. alekseyshavrak/laravel-smsru

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

alekseyshavrak/laravel-smsru
============================

SmsRu Notifications Driver

12023[1 PRs](https://github.com/alekseyshavrak/laravel-smsru/pulls)PHP

Since Nov 23Pushed 1y ago2 watchersCompare

[ Source](https://github.com/alekseyshavrak/laravel-smsru)[ Packagist](https://packagist.org/packages/alekseyshavrak/laravel-smsru)[ RSS](/packages/alekseyshavrak-laravel-smsru/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

SMS notification channel for Laravel 7 and 8
============================================

[](#sms-notification-channel-for-laravel-7-and-8)

This package makes it easy to send notifications using [sms.ru](https://sms.ru/) with Laravel &gt; 5.\*.

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 alekseyshavrak/laravel-smsru
```

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)

- [Aleksey Shabrak](https://teleg.run/shavrak)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity33

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/8ca1ad9c82c72eed2cbefb9091dbcbdb65b85c04f51b8aa7383421704bb0288a?d=identicon)[alekseyshavrak](/maintainers/alekseyshavrak)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/alekseyshavrak-laravel-smsru/health.svg)

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

###  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)
