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

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

khodja/smsc
===========

SMSC - позволяет рассылать сообщения через ваши проекты и сервисы по протоколам HTTP/HTTPS, SMTP и SMPP.

v0.1.0(9y ago)32.1k↓88.1%[1 issues](https://github.com/FayzullaKhodja/smsc/issues)MITPHPPHP &gt;=5.3.0

Since Jun 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/FayzullaKhodja/smsc)[ Packagist](https://packagist.org/packages/khodja/smsc)[ RSS](/packages/khodja-smsc/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)DependenciesVersions (4)Used By (0)

Integrate SMSC.ru API with Laravel
==================================

[](#integrate-smscru-api-with-laravel)

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

[](#installation)

Require this package with composer:

```
composer require khodja/smsc

```

Register the provider directly in your app configuration file config/app.php

```
'providers' => [
    // ...
    Khodja\Smsc\SmscServiceProvider::class,
];
```

Add the facade aliases in the same file:

```
'aliases' => [
    ...
    'Smsc' => Khodja\Smsc\Facades\Smsc::class
];
```

### Package Configuration

[](#package-configuration)

Setting up the SmscRu service in your app configuration file config/services.php:

```
// config/services.php
...
'smsc' => [
    'login' => env('SMSC_LOGIN', 'login'),
    'password' => env('SMSC_PASSWORD', 'mypass'),
    'post' => 1,             // использовать метод POST
    'https' => 1,            // использовать HTTPS протокол
    'charset' => 'utf-8',    // кодировка сообщения: utf-8, koi8-r или windows-1251 (по умолчанию)
    'debug' => 0,             // флаг отладки
    'smtp_from' => 'api@smsc.ru', // e-mail адрес отправителя
],
...
```

Usage
-----

[](#usage)

Use the Smsc class where you want to use it.

```
use Khodja\Smsc\Smsc;
```

Then use the sendMessage method.

```
SmsC::send('998901234567', 'Your activation code: 12134');
```

SMTP version for sending message

```
SmsC::sendSmsMail('998901234567', 'Hi Bro!');
```

Get balance method

```
SmsC::getBalance();
```

Get sms cost method

```
SmsC::getSmsCost('998901234567', 'Hi Bro!');
```

Get sms status by id and phone number

```
SmsC::getSmsCost('12', '99890123456');
```

Support
-------

[](#support)

Feel free to post your issues in the issues section.

Security
--------

[](#security)

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

License
-------

[](#license)

This library is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

Some of this documentation is coming from the official documentation. You can find it completely on the [SMSc](https://smsc.ru/api/) Website.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~0 days

Total

3

Last Release

3317d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9434260?v=4)[Fayzulla](/maintainers/Fayzulla)[@Fayzulla](https://github.com/Fayzulla)

---

Top Contributors

[![Fayzulla](https://avatars.githubusercontent.com/u/9434260?v=4)](https://github.com/Fayzulla "Fayzulla (11 commits)")[![FayzullaKhodja](https://avatars.githubusercontent.com/u/11515038?v=4)](https://github.com/FayzullaKhodja "FayzullaKhodja (1 commits)")

---

Tags

laravelsmssmsc

### Embed Badge

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

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

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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