PHPackages                             akhur0286/yii2-paykeeper - 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. akhur0286/yii2-paykeeper

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

akhur0286/yii2-paykeeper
========================

Библиотека для приема платежей через Сбербанк.

01.5k1PHP

Since Sep 13Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Библиотека для приема платежей через интернет для Paykeeper.
============================================================

[](#библиотека-для-приема-платежей-через-интернет-для-paykeeper)

Библиотека для приема платежей через интернет для Paykeeper.

Установка с помощью Composer
----------------------------

[](#установка-с-помощью-composer)

```
php composer.phar require akhur0286/yii2-paykeeper "*"

```

или добавьте в composer.json

```
"akhur0286/yii2-paykeeper": "*"

```

Подключение компонента
----------------------

[](#подключение-компонента)

```
[
    'components' => [
        'paykeeper' => [
            'class' => 'akhur0286\paykeeper\Merchant',
            'merchantLogin' => '',
            'merchantPassword' => '',
            'serverUrl' => '',
            'orderModel' => '', //модель таблицы заказов
        ],
        //..
    ],
];
```

Пример работы библиотеки
------------------------

[](#пример-работы-библиотеки)

```
class PaymentController extends \yii\web\Controller
{
    /**
     * @inheritdoc
     */
    public function actions()
    {
        return [
            'success-payment' => [
                'class' => '\akhur0286\paykeeper\actions\BaseAction',
                'callback' => [$this, 'successCallback'],
            ],
            'error-payment' => [
                'class' => '\akhur0286\paykeeper\actions\BaseAction',
                'callback' => [$this, 'failCallback'],
            ],
        ];
    }

    public function successCallback($orderId)
    {
        /* @var $model PaykeeperInvoice */
        $model = PaykeeperInvoice::findOne(['invoice_id' => $orderId]);
        if (is_null($model)) {
            throw new NotFoundHttpException();
        }

        $merchant = \Yii::$app->get('paykeeper');
        $result = $merchant->checkStatus($orderId);
        //Проверяем статус оплаты если всё хорошо обновим инвойс и редерекним
        if (isset($result['OrderStatus']) && ($result['OrderStatus'] != $merchant->successStatus)) {
            //обработка при успешной оплате $model->related_id номер заказа
            echo 'ok';
        } else {
            $this->redirect($merchant->failUrl.'?orderId=' . $orderId);
        }
    }

    public function failCallback($orderId)
    {
        /* @var $model PaykeeperInvoice */
        $model = PaykeeperInvoice::findOne(['invoice_id' => $orderId]);
        if (is_null($model)) {
            throw new NotFoundHttpException();
        }
        //вывод страницы ошибки $model->related_id номер заказа

        echo 'error payment';
    }
}

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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://avatars.githubusercontent.com/u/10026691?v=4)[akhur](/maintainers/akhur0286)[@akhur0286](https://github.com/akhur0286)

---

Top Contributors

[![akhur0286](https://avatars.githubusercontent.com/u/10026691?v=4)](https://github.com/akhur0286 "akhur0286 (1 commits)")

### Embed Badge

![Health badge](/badges/akhur0286-yii2-paykeeper/health.svg)

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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