PHPackages                             mrssoft/rbs - 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. [Payment Processing](/categories/payments)
4. /
5. mrssoft/rbs

ActiveYii2-extension[Payment Processing](/categories/payments)

mrssoft/rbs
===========

Component for payment through the payment gateway Sberbank

1.2.1(7mo ago)01231MITPHPPHP &gt;=8.0

Since Apr 27Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/mrs2000/yii2-rbs)[ Packagist](https://packagist.org/packages/mrssoft/rbs)[ RSS](/packages/mrssoft-rbs/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (14)Used By (0)

RBS
===

[](#rbs)

Component for payment through the payment gateway bank "Sber"

[Sber Manual](https://securepayments.sberbank.ru/wiki/doku.php/start)

[![Latest Stable Version](https://camo.githubusercontent.com/36acaedadfe1bf6ffd5fc23bfaae9bb2e9ca7c1fe06c1ed2980bb46bbb5b41f2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d7273736f66742f7262732e737667)](https://packagist.org/packages/mrssoft/rbs)[![PHP](https://camo.githubusercontent.com/ca04464c9f32b4ca47b5224ca142421177db0bea2095b09e1bfbaaa27574ba0e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d7273736f66742f7262732e737667)](https://camo.githubusercontent.com/ca04464c9f32b4ca47b5224ca142421177db0bea2095b09e1bfbaaa27574ba0e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d7273736f66742f7262732e737667)[![Github](https://camo.githubusercontent.com/18e3bf3eab3182be44b8452f9e9a9cf27d147aec2907216670a27f3382ee79f5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d7273323030302f796969322d7262732e737667)](https://camo.githubusercontent.com/18e3bf3eab3182be44b8452f9e9a9cf27d147aec2907216670a27f3382ee79f5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d7273323030302f796969322d7262732e737667)[![Total Downloads](https://camo.githubusercontent.com/ed37bc6507bcbb1c33b03080a31512a16b8a3b870b668fb8720f4979eb1d3223/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d7273736f66742f7262732e737667)](https://camo.githubusercontent.com/ed37bc6507bcbb1c33b03080a31512a16b8a3b870b668fb8720f4979eb1d3223/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d7273736f66742f7262732e737667)

### Installation

[](#installation)

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

```
php composer.phar require --prefer-dist mrssoft/rbs "*"

```

or add

```
"mrssoft/rbs": "*"

```

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

### Usage

[](#usage)

Register order

```
    $rbs = new \mrssoft\rbs\Rbs(['userName' => '', 'password' => '']);
    $rbs->credit = true; //if credit
    $rbs->productType = \mrssoft\rbs\Rbs::TYPE_CREDIT_INSTALLMENT;

    $rbsOrder = new RbsOrder();
    $rbsOrder->orderNumber = 'NM-12874';
    $rbsOrder->email = 'test@mail.com';
    $rbsOrder->description = 'Test';
    $rbsOrder->returnUrl = 'https:/mysite.com/payment/success';
    $rbsOrder->failUrl = 'https:/mysite.com/payment/fail';
    $rbsOrder->credit = 1; //for credit payment

    $rbsOrder->addCartItem(123, 'Product name', 450.80, 2);
    $rbsOrder->addCartItem('a321', 'Product name II', 145, 2.5);
    ...

    $response = $rbs->register($rbsOrder);
    if ($response) {
        //$response['orderId'] - order number on the payment gateway
        //$response['formUrl'] - redirect url
    }
```

Get order status

```
    $rbs = new \mrssoft\rbs\Rbs(['userName' => '', 'password' => '']);
    $response = $rbsOrder->getOrderStatus('00256ad8-xxxx-4302-xxxx-846d6c0fd6bd');
    //$response['OrderStatus'] - order state code
```

Get order info

```
    $rbs = new \mrssoft\rbs\Rbs(['userName' => '', 'password' => '']);
    $info = $rbsOrder->getOrderInfo('00256ad8-xxxx-4302-xxxx-846d6c0fd6bd');
```

### Usage as Yii component

[](#usage-as-yii-component)

```

    // Application config
    ...
    'components' => [
        'rbs' = > [
            'class' => \mrssoft\rbs\Rbs::class,
            'auth' => [ // multiple accounts
                'first' => [
                    'server' => 'https://3dsec.sberbank.ru/sbercredit/',
                    'userName' => 'username1',
                    'password' => '*****',
                ],
                'second' => [
                    'userName' => 'username2',
                    'password' => '*****',
                ]
            ]
        ]
    ]
    ...

    // Selecting account "second"
    $response = Yii::$app->rbs->register($rbsOrder, 'second');
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance64

Regular maintenance activity

Popularity11

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity75

Established project with proven stability

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 ~227 days

Recently: every ~323 days

Total

13

Last Release

216d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.1

1.1.5PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e69f6780ee8c8e5b2c10af66e1232ac3925766c6f2f83db1820f2ff9a590a62?d=identicon)[mrs2000](/maintainers/mrs2000)

---

Tags

paymentyiisberbank

### Embed Badge

![Health badge](/badges/mrssoft-rbs/health.svg)

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

###  Alternatives

[hscstudio/yii2-cart

Yii2 extension that adds shopping cart functions

242.1k](/packages/hscstudio-yii2-cart)[amirasaran/zarinpal

Online Zarinpal Payment Extension For Yii2

131.9k](/packages/amirasaran-zarinpal)

PHPackages © 2026

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