PHPackages                             medeq/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. medeq/smsc-ru

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

medeq/smsc-ru
=============

:package\_description

v3.2.0(4y ago)033MITPHPPHP &gt;=7.2

Since Aug 13Pushed 3y agoCompare

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

READMEChangelogDependencies (6)Versions (25)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 medeq/smsc-ru
```

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

```
composer require medeq/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

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity68

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 ~79 days

Recently: every ~170 days

Total

24

Last Release

1734d 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.0.4 → 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://www.gravatar.com/avatar/8bdf416b46df58f60db7668143314f2ca549e232676d78d263bfa2b3ef809dac?d=identicon)[MedeqStars](/maintainers/MedeqStars)

---

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)")[![medeqstars](https://avatars.githubusercontent.com/u/69240402?v=4)](https://github.com/medeqstars "medeqstars (4 commits)")[![vanodevium](https://avatars.githubusercontent.com/u/16780069?v=4)](https://github.com/vanodevium "vanodevium (3 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)")[![casperboone](https://avatars.githubusercontent.com/u/15815208?v=4)](https://github.com/casperboone "casperboone (1 commits)")[![atymic](https://avatars.githubusercontent.com/u/50683531?v=4)](https://github.com/atymic "atymic (1 commits)")[![artshev](https://avatars.githubusercontent.com/u/9943032?v=4)](https://github.com/artshev "artshev (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)")[![alexey-m-ukolov](https://avatars.githubusercontent.com/u/1778239?v=4)](https://github.com/alexey-m-ukolov "alexey-m-ukolov (1 commits)")

---

Tags

laravelnotificationssmscsmscentreСМС-Центр

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/medeq-smsc-ru/health.svg)

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

###  Alternatives

[laravel-notification-channels/smsc-ru

SmscRu Notifications channel for Laravel 5.3.

51192.8k](/packages/laravel-notification-channels-smsc-ru)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[benwilkins/laravel-fcm-notification

Laravel FCM (Firebase Cloud Messaging) Notification Channel

210964.1k1](/packages/benwilkins-laravel-fcm-notification)

PHPackages © 2026

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