PHPackages                             yudina/laravel-sms - 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. yudina/laravel-sms

ActiveLibrary

yudina/laravel-sms
==================

Sms provider

0.0.7(6y ago)1241MITPHPPHP &gt;=7.0CI failing

Since May 22Pushed 5y ago2 watchersCompare

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

READMEChangelogDependencies (3)Versions (8)Used By (0)

Sms notifications channel for Laravel 5.8
=========================================

[](#sms-notifications-channel-for-laravel-58)

This package makes it easy to send SMS notifications for some sms providers with Laravel 5.8.

Supported SMS providers:

- [SMS.RU](http://sms.ru)
- [SMSC.RU](https://smsc.ru)

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

[](#installation)

Add SmsNotification package to your Laravel project via composer:

```
composer required yudina/laravel-sms
```

Then publish configuration file:

```
php artisan vendor:publish --provider="Yudina\LaravelSms\SmsSenderServiceProvider"
```

Settings up your account for select sms provider
------------------------------------------------

[](#settings-up-your-account-for-select-sms-provider)

Add the environment variables to your config/services.php:

```
// config/services.php
...
'default' => env('SMS_PROVIDER', 'smscru'),

'providers' => [
    'smsru' => [
        'api_id' => env('SMSRU_API_ID')
    ],
    'smscru' => [
        'login' => env('SMSCRU_LOGIN'),
        'password' => env('SMSCRU_PASSWORD'),
        'sender' => env('SMSCRU_SENDER')
    ],
    ...
]
...
```

Add your necessary keys to your .env:

```
 // .env
 SMSRU_API_ID=
 ...
```

Usage
-----

[](#usage)

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

```
use Yudina\LaravelSms\SmsSenderChannel;
use Yudina\LaravelSms\SmsSenderMessage;

use Illuminate\Notifications\Notification;

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

    public function toSms($notifiable)
    {
        $message = 'Activation code: ' . $this->generateCode(6);

        return new SmsSenderMessage($message);
    }

    private function generateCode(int $length): string
    {
        $result = '';

        for($i = 0; $i < $length; $i++)
            $result .= mt_rand(0, 9);

        return $result;
    }
}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81% 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 ~29 days

Recently: every ~43 days

Total

7

Last Release

2373d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a134eca8e393d0fbe2738053149a3d7560ffbf86de45c5634712ad74552fe4b?d=identicon)[dasha\_yudina](/maintainers/dasha_yudina)

---

Top Contributors

[![kiriunina](https://avatars.githubusercontent.com/u/12443333?v=4)](https://github.com/kiriunina "kiriunina (17 commits)")[![kiriunin](https://avatars.githubusercontent.com/u/943730?v=4)](https://github.com/kiriunin "kiriunin (4 commits)")

---

Tags

laravelsms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yudina-laravel-sms/health.svg)

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

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[ardakilic/mutlucell

Mutlucell SMS API wrapper for sending sms text messages for Laravel

457.3k](/packages/ardakilic-mutlucell)[rinvex/laravel-authy

Rinvex Authy is a simple wrapper for Authy TOTP, the best rated Two-Factor Authentication service for consumers, simplest 2fa Rest API for developers and a strong authentication platform for the enterprise.

3376.7k1](/packages/rinvex-laravel-authy)

PHPackages © 2026

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