PHPackages                             n1creator/smsru - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. n1creator/smsru

ActiveLibrary[HTTP &amp; Networking](/categories/http)

n1creator/smsru
===============

PHP-класс для работы с api сервиса \[sms.ru\](http://sms.ru)

02.7k↓50%PHP

Since Jun 17Pushed 1y agoCompare

[ Source](https://github.com/an1creator/sms_ru)[ Packagist](https://packagist.org/packages/n1creator/smsru)[ RSS](/packages/n1creator-smsru/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

###### forked from [https://github.com/zelenin/sms\_ru](https://github.com/zelenin/sms_ru)

[](#forked-from-httpsgithubcomzeleninsms_ru)

sms\_ru
=======

[](#sms_ru)

PHP-класс для работы с api сервиса [sms.ru](http://sms.ru)

Установка
---------

[](#установка)

### Предупреждение

[](#предупреждение)

Версия 4 имеет отличное от предыдущих версий API.

### Установка через Composer

[](#установка-через-composer)

Запустите

```
php composer.phar require n1creator/smsru "dev-master"

```

или добавьте

```
"n1creator/smsru": "dev-master"

```

в секцию `require` вашего composer.json

Использование
-------------

[](#использование)

Простая авторизация (с помощью api\_id):

```
$client = new \N1Creator\SmsRu\Api(new \N1Creator\SmsRu\Auth\ApiIdAuth($apiId), new \N1Creator\SmsRu\Client\Client());
```

Усиленная авторизация (с помощью api\_id, логина и пароля):

```
$client = new \N1Creator\SmsRu\Api(new \N1Creator\SmsRu\Auth\LoginPasswordSecureAuth($login, $password, $apiId), new \N1Creator\SmsRu\Client\Client());
```

Усиленная авторизация (с помощью логина и пароля):

```
$client = new \N1Creator\SmsRu\Api(new \N1Creator\SmsRu\Auth\LoginPasswordAuth($login, $password), new \N1Creator\SmsRu\Client\Client());
```

Отправка SMS:

```
$sms1 = new \N1Creator\SmsRu\Entity\Sms($phone1, $text1);
$sms1->translit = 1;
$sms2 = new \N1Creator\SmsRu\Entity\Sms($phone2, $text2);

$client->smsSend($sms1);
$client->smsSend($sms2);

$client->smsSend(new \N1Creator\SmsRu\Entity\SmsPool([$sms1, $sms2]));
```

Статус SMS:

```
$send = $client->smsSend($sms);
$smsId = $send->ids[0];
$client->smsStatus($smsId);
```

Стоимость SMS:

```
$client->smsCost(new \N1Creator\SmsRu\Entity\Sms($phone, $text));
```

Баланс:

```
$client->myBalance();
```

Дневной лимит:

```
$client->myLimit();
```

Отправители:

```
$client->mySenders();
```

Проверка валидности логина и пароля:

```
$client->authCheck();
```

Добавить номер в стоплист:

```
$client->stoplistAdd($phone, $text);
```

Удалить номер из стоп-листа:

```
$client->stoplistDel($phone);
```

Получить номера стоплиста:

```
$client->stoplistGet();
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 62.5% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fa58fdad008fbcf46362562ef3476edb382f8b858053b73b000c5a38ff6f655b?d=identicon)[N1Creator](/maintainers/N1Creator)

---

Top Contributors

[![zelenin](https://avatars.githubusercontent.com/u/1427885?v=4)](https://github.com/zelenin "zelenin (60 commits)")[![rmrevin](https://avatars.githubusercontent.com/u/803507?v=4)](https://github.com/rmrevin "rmrevin (8 commits)")[![an1creator](https://avatars.githubusercontent.com/u/2942640?v=4)](https://github.com/an1creator "an1creator (7 commits)")[![cjmaxik](https://avatars.githubusercontent.com/u/1501705?v=4)](https://github.com/cjmaxik "cjmaxik (7 commits)")[![Insolita](https://avatars.githubusercontent.com/u/1847402?v=4)](https://github.com/Insolita "Insolita (4 commits)")[![maxgorovenko](https://avatars.githubusercontent.com/u/530506?v=4)](https://github.com/maxgorovenko "maxgorovenko (3 commits)")[![pfkobnovlenie](https://avatars.githubusercontent.com/u/44596036?v=4)](https://github.com/pfkobnovlenie "pfkobnovlenie (2 commits)")[![thewizardplusplus](https://avatars.githubusercontent.com/u/3732121?v=4)](https://github.com/thewizardplusplus "thewizardplusplus (2 commits)")[![2bj](https://avatars.githubusercontent.com/u/71068?v=4)](https://github.com/2bj "2bj (1 commits)")[![GoldcarrotYamil](https://avatars.githubusercontent.com/u/17644997?v=4)](https://github.com/GoldcarrotYamil "GoldcarrotYamil (1 commits)")[![alexby](https://avatars.githubusercontent.com/u/1965375?v=4)](https://github.com/alexby "alexby (1 commits)")

### Embed Badge

![Health badge](/badges/n1creator-smsru/health.svg)

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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