PHPackages                             yii-dream-team/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. [API Development](/categories/api)
4. /
5. yii-dream-team/smsru

ActiveLibrary[API Development](/categories/api)

yii-dream-team/smsru
====================

PHP class for working with SMS.ru api by Yii Dream Team

3.2.0(10y ago)111.1k1MITPHPPHP &gt;=5.4.0

Since Oct 31Pushed 10y ago2 watchersCompare

[ Source](https://github.com/yii-dream-team/smsru)[ Packagist](https://packagist.org/packages/yii-dream-team/smsru)[ Docs](http://yiidreamteam.com/php/smsru)[ RSS](/packages/yii-dream-team-smsru/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (17)Used By (1)

yiidreamteam\\smsru\\Api
========================

[](#yiidreamteamsmsruapi)

PHP class for working with [sms.ru](http://yiidreamteam.sms.ru) api by [Yii Dream Team](http://yiidreamteam.com/). Improved and refactored version of the [sms\_ru](https://github.cm/zelenin/sms_ru) class by Aleksandr Zelenin.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist yii-dream-team/smsru "*"

```

or add

```
"yii-dream-team/smsru": "*"

```

to the `require` section of your composer.json.

Usage
-----

[](#usage)

Authorization:

```
$api = new \yiidreamteam\smsru\Api($apiId);

```

Sending text message:

```
$api->send('79112223344', 'Text message');
$api->send('79112223344,79115556677,79118889900', 'Text message');
$api->send('79112223344', 'Text message', 'Sender', time(), $transliteration = false, $test = true);

```

Sending multiple texts:

```
$messages = [
    ['79112223344', 'Text message'],
    ['79115556677', 'Text message #2']
];
$api->sendMultiple($messages, 'Sender', time(), $transliteration = false, $test = true);

```

Message status:

```
$api->status('SMS id');

```

Message cost:

```
$api->cost('79112223344', 'Text message');

```

Balance:

```
$api->balance();

```

Daily limit:

```
$api->limit();

```

Senders:

```
$api->senders();

```

Adding number to the stop list:

```
$api->stopListAdd('79112223344', 'Some note');

```

Removing number from the stop list

```
$api->stopListDel('79112223344');

```

Obtaining the stop list:

```
$api->stopListGet();

```

Licence
-------

[](#licence)

MIT

Links
-----

[](#links)

- [sms.ru service](http://yiidreamteam.sms.ru)
- [Official site](http://yiidreamteam.com/php/smsru)
- [Source code on GitHub](https://github.com/yii-dream-team/smsru)
- [Composer package on Packagist](https://packagist.org/packages/yii-dream-team/smsru)
- Origin: [Aleksandr Zelenin](https://github.com/zelenin/), e-mail:

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 60.6% 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 ~61 days

Recently: every ~119 days

Total

16

Last Release

3705d ago

Major Versions

1.4.4 → 2.0.02014-10-07

2.0.0 → 3.0.22015-01-12

1.1.0 → 3.0.82015-06-15

PHP version history (2 changes)1.4.0PHP &gt;=5.3.0

2.0.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1297270?v=4)[Vahid G](/maintainers/lagman)[@lagman](https://github.com/lagman)

---

Top Contributors

[![zelenin](https://avatars.githubusercontent.com/u/1427885?v=4)](https://github.com/zelenin "zelenin (40 commits)")[![metalagman](https://avatars.githubusercontent.com/u/1983796?v=4)](https://github.com/metalagman "metalagman (15 commits)")[![cjmaxik](https://avatars.githubusercontent.com/u/1501705?v=4)](https://github.com/cjmaxik "cjmaxik (7 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)")[![BioSin](https://avatars.githubusercontent.com/u/1442288?v=4)](https://github.com/BioSin "BioSin (1 commits)")

---

Tags

apismssms.ru

### Embed Badge

![Health badge](/badges/yii-dream-team-smsru/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[plivo/plivo-php

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1113.0M19](/packages/plivo-plivo-php)[plivo/php-sdk

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1112.0M6](/packages/plivo-php-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[ardakilic/mutlucell

Mutlucell SMS API wrapper for sending sms text messages for Laravel

457.5k](/packages/ardakilic-mutlucell)

PHPackages © 2026

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