New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

laravel-notification-channels/smsc-ru

SmscRu Notifications channel for Laravel 5.3.
209,102 51

Larablocks Analysis

Compatibility

Trusted maintainer

laravel-notification-channels/smsc-ru works with Laravel 5 to 12 (latest release v3.6.0, Apr 15, 2025).

  • Trusted maintainer: laravel-notification-channels publishes 46 packages on Larablocks, with 3,443,753 downloads a month between them.

Recommendation checks

Use with care

Use with care: meets 0 of 4 checks.

  • Latest release doesn't support Laravel 13, the current version
  • No release in the last 12 months (last: Apr 15, 2025)
  • 1,971 downloads a month (needs 10,000)
  • 51 GitHub stars (needs 100)

State

Quiet
  • Last stable release: Apr 15, 2025.
  • No releases in the last 12 months.
  • First released: Aug 13, 2016.
  • Monthly downloads: 1,971, about the same as six months ago.
  • 2 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require laravel-notification-channels/smsc-ru
Latest Version:v3.6.0
PHP:>=7.2
Laravel:5 – 12
License:MIT
Last Updated:Apr 15, 2025
Links: GitHub  ·  Packagist

Smsc notifications channel for Laravel 5.3+

Latest Version on Packagist Software License Build Status StyleCI SensioLabsInsight Quality Score Code Coverage Total Downloads

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

Contents

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

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

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

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

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Security

If you discover any security related issues, please email jhaoda@gmail.com instead of using the issue tracker.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

fenos/notifynder

Management system of internal notifications for Laravel 5.*

208,081 423
carropublic/notifications

A collections of notification channels and senders

49,470 0
difftechnology/notifynder

Management system of internal notifications for Laravel 5.*

34 0
jmpatricio/notifications

Notifications package for Laravel

4 1
laravel/slack-notification-channel

Slack Notification Channel for laravel.

88,292,774 891

Version History

Version Released PHP Laravel License
v3.6.0 >=7.2 5.1 - 5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0 MIT
v3.5.0 >=7.2 5.1 - 5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0 MIT
v3.4.0 >=7.2 5.1 - 5.8|^6.0|^7.0|^8.0|^9.0|^10.0 MIT
v3.3.0 >=7.2 5.1 - 5.8|^6.0|^7.0|^8.0|^9.0 MIT
v3.2.0 >=7.2 5.1 - 5.8|^6.0|^7.0|^8.0 MIT