PHPackages                             kholmatov/yii2-lacaixa - 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. kholmatov/yii2-lacaixa

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

kholmatov/yii2-lacaixa
======================

Yii2 lacaixa module to integrate the payment gateway (TPV Virtual) Redsys to be integrated into virtual web shops that have been developed under Yii2.

278PHP

Since Sep 25Pushed 8y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 lacaixa Module
===================

[](#yii2-lacaixa-module)

Yii2 lacaixa module to integrate the payment gateway (TPV Virtual) Redsys to be integrated into virtual web shops that have been developed under Yii2.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist kholmatov/yii2-lacaixa "*"

```

or add

```
"kholmatov/yii2-lacaixa": "*"

```

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

Usage
-----

[](#usage)

Setting configuration file `kholmatov/yii2-lacaixa/config.php`

Once the extension is installed, simply use it in your code by :

```

```

or get result on Json format:

```

```

Put this example code in any controller script for testing success url in action (URLOK):

```

    ...

    public function actionOk(){
        $get = Yii::$app->request->get();
        if(isset($get) && isset($get['Ds_SignatureVersion']) && isset($get['Ds_MerchantParameters']) && isset($get['Ds_Signature'])):

            $rs = \kholmatov\lacaixa\RedsysWDG::checkData($get['Ds_SignatureVersion'],$get['Ds_MerchantParameters'],$get['Ds_Signature']);
            if($rs){
                $rsParam = \kholmatov\lacaixa\RedsysWDG::decodeData($get['Ds_MerchantParameters']);
                $myParam = json_decode($rsParam,true);
                print_r($myParam);
                  ....
               }
        endif;

        //return $this->redirect(array('/'));
    }

    ...

```

Put this example code in any controller script for testing cancel or error url in action (URLKO):

```

    ...

    public function actionKo(){
       $get = Yii::$app->request->get();
          if(isset($get) && isset($get['Ds_SignatureVersion']) && isset($get['Ds_MerchantParameters']) && isset($get['Ds_Signature'])):
            $rs = \kholmatov\lacaixa\RedsysWDG::checkData($get['Ds_SignatureVersion'],$get['Ds_MerchantParameters'],$get['Ds_Signature']);
            if($rs){
                       $rsParam = RedsysWDG::decodeData($get['Ds_MerchantParameters']);
                       $myParam = json_decode($rsParam,true);
                       print_r($myParam);
                      ...
            }
          endif;

          //return $this->redirect(array('/'));
    }

    ...

    ```
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/7079631?v=4)[Erkin Kholmatov](/maintainers/kholmatov)[@kholmatov](https://github.com/kholmatov)

---

Top Contributors

[![kholmatov](https://avatars.githubusercontent.com/u/7079631?v=4)](https://github.com/kholmatov "kholmatov (5 commits)")

### Embed Badge

![Health badge](/badges/kholmatov-yii2-lacaixa/health.svg)

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

PHPackages © 2026

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