PHPackages                             laravel-notification-channels/smsc-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. laravel-notification-channels/smsc-ru

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

laravel-notification-channels/smsc-ru
=====================================

SmscRu Notifications channel for Laravel 5.3.

v3.6.0(1y ago)51199.1k↓31.5%44[1 issues](https://github.com/laravel-notification-channels/smsc-ru/issues)[1 PRs](https://github.com/laravel-notification-channels/smsc-ru/pulls)MITPHPPHP &gt;=7.2CI failing

Since Aug 13Pushed 1y ago5 watchersCompare

[ Source](https://github.com/laravel-notification-channels/smsc-ru)[ Packagist](https://packagist.org/packages/laravel-notification-channels/smsc-ru)[ Docs](https://github.com/laravel-notification-channels/smsc-ru)[ RSS](/packages/laravel-notification-channels-smsc-ru/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (6)Versions (29)Used By (0)

Smsc notifications channel for Laravel 5.3+
===========================================

[](#smsc-notifications-channel-for-laravel-53)

[![Latest Version on Packagist](https://camo.githubusercontent.com/77d872b056c57c4be3787ba3702b931572821ca74003ce9611581bd8174d07c7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f736d73632d72752e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/smsc-ru)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/0e8e427fc82d70826f00486645ee7755c6ee3f1185b0f7e8d66f8403a550fed5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f736d73632d72752f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/laravel-notification-channels/smsc-ru)[![StyleCI](https://camo.githubusercontent.com/0cc40f91817704dc8a790e86f9121777e293ae2c3e748db68c894eba156c4964/68747470733a2f2f7374796c6563692e696f2f7265706f732f36353538393435312f736869656c64)](https://styleci.io/repos/65589451)[![SensioLabsInsight](https://camo.githubusercontent.com/8bf7b10fb398541d8adce86003f2fa8aadd3c5de6cae0c9e84ce878e4234f3e9/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f61636565666532372d626135612d343964372d393036342d6263336162656130616265622e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/aceefe27-ba5a-49d7-9064-bc3abea0abeb)[![Quality Score](https://camo.githubusercontent.com/b925f4bd4768a284eafd1e1ee58589acbabf74c2a45f08ca40d665f2223c1075/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f736d73632d72752e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/smsc-ru)[![Code Coverage](https://camo.githubusercontent.com/c6e91725dc4d758ae458181df7134d2e1fc833f0a4d650c926798d54489a208a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f736d73632d72752f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/laravel-notification-channels/smsc-ru/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/fd6b9fd2326ebd1b00b992f7dd9e72fd81c39df9533655c1ef7c4a77d7654039/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c2d6e6f74696669636174696f6e2d6368616e6e656c732f736d73632d72752e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-notification-channels/smsc-ru)

This package makes it easy to send notifications using [smsc.ru](https://smsc.ru) (aka СМС–Центр) with Laravel 5.3+.

Contents
--------

[](#contents)

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

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

[](#installation)

Install this package with Composer:

```
composer require laravel-notification-channels/smsc-ru
```

If you're using Laravel 5.x you'll also need to specify a version constraint:

```
composer require laravel-notification-channels/smsc-ru -v 2.0.3
```

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

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

### Setting up the SmscRu service

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

Add your SmscRu login, secret key (hashed password) and default sender name (or phone number) to your `config/services.php`:

```
// config/services.php
...
'smscru' => [
    'login'  => env('SMSCRU_LOGIN'),
    'secret' => env('SMSCRU_SECRET'),
    'sender' => 'John_Doe',
    'extra'  => [
        // any other API parameters
        // 'tinyurl' => 1
    ],
],
...
```

> If you want use other host than `smsc.ru`, you MUST set custom host WITH trailing slash.

```
// .env
...
SMSCRU_HOST=http://www1.smsc.kz/
...

```

```
// config/services.php
...
'smscru' => [
    ...
    'host' => env('SMSCRU_HOST'),
    ...
],
...
```

Usage
-----

[](#usage)

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

```
use Illuminate\Notifications\Notification;
use NotificationChannels\SmscRu\SmscRuMessage;
use NotificationChannels\SmscRu\SmscRuChannel;

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

    public function toSmscRu($notifiable)
    {
        return SmscRuMessage::create("Task #{$notifiable->id} is complete!");
    }
}
```

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

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

### Available methods

[](#available-methods)

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

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

`sendAt()`: Set a time for scheduling the notification message.

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  instead of using the issue tracker.

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

[](#contributing)

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

Credits
-------

[](#credits)

- [JhaoDa](https://github.com/jhaoda)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance44

Moderate activity, may be stable

Popularity48

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 52.4% 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 ~117 days

Recently: every ~336 days

Total

28

Last Release

444d ago

Major Versions

0.0.2 → v1.0.02016-08-29

v1.1.6 → v2.0.02018-06-11

v2.0.3 → v3.0.02019-09-10

v2.x-dev → v3.0.22019-09-26

PHP version history (3 changes)v0.0.1PHP &gt;=5.6.4

v3.0.0PHP ^7.2

v3.2.0PHP &gt;=7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20937037?v=4)[Laravel Notification Channels](/maintainers/laravel-notification-channels)[@laravel-notification-channels](https://github.com/laravel-notification-channels)

---

Top Contributors

[![jhaoda](https://avatars.githubusercontent.com/u/2151259?v=4)](https://github.com/jhaoda "jhaoda (44 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (16 commits)")[![themsaid](https://avatars.githubusercontent.com/u/4332182?v=4)](https://github.com/themsaid "themsaid (5 commits)")[![vanodevium](https://avatars.githubusercontent.com/u/16780069?v=4)](https://github.com/vanodevium "vanodevium (3 commits)")[![max-gopher](https://avatars.githubusercontent.com/u/12901140?v=4)](https://github.com/max-gopher "max-gopher (2 commits)")[![casperboone](https://avatars.githubusercontent.com/u/15815208?v=4)](https://github.com/casperboone "casperboone (1 commits)")[![enniel](https://avatars.githubusercontent.com/u/19760944?v=4)](https://github.com/enniel "enniel (1 commits)")[![Finesse](https://avatars.githubusercontent.com/u/9006227?v=4)](https://github.com/Finesse "Finesse (1 commits)")[![artshev](https://avatars.githubusercontent.com/u/9943032?v=4)](https://github.com/artshev "artshev (1 commits)")[![arlanram](https://avatars.githubusercontent.com/u/39748102?v=4)](https://github.com/arlanram "arlanram (1 commits)")[![kefir500](https://avatars.githubusercontent.com/u/3617499?v=4)](https://github.com/kefir500 "kefir500 (1 commits)")[![mhamlet](https://avatars.githubusercontent.com/u/1281731?v=4)](https://github.com/mhamlet "mhamlet (1 commits)")[![oyed](https://avatars.githubusercontent.com/u/172114265?v=4)](https://github.com/oyed "oyed (1 commits)")[![pinguinjkeke](https://avatars.githubusercontent.com/u/10704892?v=4)](https://github.com/pinguinjkeke "pinguinjkeke (1 commits)")[![spycrabo](https://avatars.githubusercontent.com/u/30431331?v=4)](https://github.com/spycrabo "spycrabo (1 commits)")[![antonydevanchi](https://avatars.githubusercontent.com/u/610172?v=4)](https://github.com/antonydevanchi "antonydevanchi (1 commits)")[![tyurind](https://avatars.githubusercontent.com/u/2355982?v=4)](https://github.com/tyurind "tyurind (1 commits)")[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (1 commits)")[![alexey-m-ukolov](https://avatars.githubusercontent.com/u/1778239?v=4)](https://github.com/alexey-m-ukolov "alexey-m-ukolov (1 commits)")

---

Tags

laravelnotificationssmscsmsc-apilaravelnotificationssmscsmscentreСМС-Центр

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laravel-notification-channels-smsc-ru/health.svg)

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

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M306](/packages/laravel-horizon)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M164](/packages/spatie-laravel-health)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2401.4M17](/packages/laravel-notification-channels-discord)[laravel-notification-channels/pusher-push-notifications

Pusher native Push Notifications driver.

281788.6k1](/packages/laravel-notification-channels-pusher-push-notifications)[illuminate/notifications

The Illuminate Notifications package.

513.1M1.1k](/packages/illuminate-notifications)

PHPackages © 2026

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