PHPackages                             ozerich/yii2-rocketsms - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ozerich/yii2-rocketsms

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

ozerich/yii2-rocketsms
======================

Yii2 component for SMS provider RocketSMS.by

1.0.1(8y ago)32.5k↓50%MITPHPPHP &gt;=5.5

Since May 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Ozerich/yii2-rocketsms)[ Packagist](https://packagist.org/packages/ozerich/yii2-rocketsms)[ Docs](https://github.com/ozerich/yii2-rocketsms)[ RSS](/packages/ozerich-yii2-rocketsms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

yii2-rocketsms
==============

[](#yii2-rocketsms)

Yii2 component for SMS provider RocketSMS.by

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

[](#installation)

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

    Either run

    ```
    php composer.phar require ozerich/yii2-rocketsms "*"

    ```

    or add

    ```
    "ozerich/yii2-rocketsms": "*"

    ```

    to the require section of your `composer.json` file.
2. Add component configuration to your config.php

```
    'components' => [
        'sms' => [
            'class' => 'blakit\rocketsms\RocketSms',
            'login' => 'your_login',
            'password' => 'your_password'
        ]
    ]
```

Usage
-----

[](#usage)

Send SMS:

```
try {
    $response = \Yii::$app->sms->send('+375296000000', 'Test Message');
    echo 'SMS sent, message ID is ' . $response->getMessageId();
} catch (ErrorResponseException $exception) {
    echo 'Error sending SMS: ' . $exception->getError();
} catch (InvalidCredentialsException $exception) {
    echo 'RocketSMS credentials are invalid';
}
```

Check Balance:

```
try {
    $response = \Yii::$app->sms->balance();
    echo 'Your balance: ' . $response->getBalance() . 'BYN, ' . $response->getCredits() . ' SMS';
} catch (InvalidCredentialsException $exception) {
    echo 'RocketSMS credentials are invalid';
}
```

Get message status:

```
try {
    $response = \Yii::$app->sms->status('MESSAGE_ID');
    echo 'Message status: ' . $response->getStatus();
} catch (ErrorResponseException $exception) {
    echo 'Message not found';
} catch (InvalidCredentialsException $exception) {
    echo 'RocketSMS credentials are invalid';
}
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

2

Last Release

2921d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/406041?v=4)[Vital Ozierski](/maintainers/Ozerich)[@Ozerich](https://github.com/Ozerich)

---

Tags

smsyii2extensionrocketsms

### Embed Badge

![Health badge](/badges/ozerich-yii2-rocketsms/health.svg)

```
[![Health](https://phpackages.com/badges/ozerich-yii2-rocketsms/health.svg)](https://phpackages.com/packages/ozerich-yii2-rocketsms)
```

###  Alternatives

[daixianceng/yii2-smser

Yii2 SMS extension

862.9k1](/packages/daixianceng-yii2-smser)[avator/yii2-turbosms

Yii2 turbosms

1030.5k](/packages/avator-yii2-turbosms)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[abhi1693/yii2-sms

Send Free Sms for Yii2

171.9k](/packages/abhi1693-yii2-sms)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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