PHPackages                             sillsoft/yii2-liqpay - 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. sillsoft/yii2-liqpay

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

sillsoft/yii2-liqpay
====================

https://www.liqpay.ua/ checkout

019PHP

Since Jul 9Pushed 2y agoCompare

[ Source](https://github.com/SillSoft/yii2-liqpay)[ Packagist](https://packagist.org/packages/sillsoft/yii2-liqpay)[ RSS](/packages/sillsoft-yii2-liqpay/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Liqpay
===========

[](#yii2-liqpay)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist sillsoft/yii2-liqpay "*"

```

or add

```
"sillsoft/yii2-liqpay": "*"

```

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

Usage
-----

[](#usage)

config.php:

```
'modules' => [
    'liqpay' => [
                'class' => 'sillsoft\liqpay\Module',
                'publicKey' => '',
                'privateKey' => '',
    ],
]
```

Controller

```
$order_id = 1;

$repository = Yii::$container->get(LiqPayPaymentRepository::class);
$orderModel = $repository->createOrUpdate($order_id);

$liqpay = Yii::$container->get(Liqpay::class);
return $liqpay->renderPaymentForm([
            'amount' => 10,
            'currency' => 'UAH',
            'description' => Yii::t('frontend', 'Оплата за товари'),
            'order_id' => $order_id,
            'language' => Yii::$app->language,
            'result_url' => Yii::$app->urlManager->createAbsoluteUrl(['/checkout/thanks']),
            'server_url' => Yii::$app->urlManager->createAbsoluteUrl(['/liq-pay/server']),
        ]);
```

Callback

```
  public function actionServer(): Response
    {
        $request = Yii::$app->getRequest();
        if ($request->getIsPost()) {

            $data = $request->post('data');

            $orderId = ArrayHelper::getValue($data, 'order_id', false);
            $data = json_decode(base64_decode($data), true);

            $repository = Yii::$container->get(LiqPayPaymentRepository::class);
            $orderModel = $repository->findOneByOrderId($orderId);
            if (!$orderModel)
                throw new ErrorException("Payment By Order Id $orderId not found");

            $repository = Yii::$container->get(LiqPayPaymentRepository::class);
            $repository->createOrUpdate($orderId, $data);
            return $this->asJson([
                'success' => true
            ]);
        }
        throw new BadRequestHttpException();
    }
```

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity22

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/135873385?v=4)[SIllSoft](/maintainers/SillSoft)[@SillSoft](https://github.com/SillSoft)

---

Top Contributors

[![Vladislav-Tsmokaliuk](https://avatars.githubusercontent.com/u/136705486?v=4)](https://github.com/Vladislav-Tsmokaliuk "Vladislav-Tsmokaliuk (6 commits)")

### Embed Badge

![Health badge](/badges/sillsoft-yii2-liqpay/health.svg)

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

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18579.5k1](/packages/omnipay-coinbase)[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)[binkode/laravel-paystack

A description for laravel-paystack.

112.1k](/packages/binkode-laravel-paystack)

PHPackages © 2026

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