PHPackages                             znagy/yii2-simplepay-v2 - 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. znagy/yii2-simplepay-v2

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

znagy/yii2-simplepay-v2
=======================

SimplePay 2.x by OTP Mobil Extension for Yii 2

1816PHP

Since Jul 15Pushed 3y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

yii2-simplepay-v2
=================

[](#yii2-simplepay-v2)

SimplePay 2.x by OTP Mobil Extension for Yii 2

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

[](#installation)

The extension can be installed via Composer.

### Adding dependency

[](#adding-dependency)

Add an entry for the extension in the require section in your composer.json:

```
"znagy/yii2-simplepay-v2": "dev-master"

```

After this, you can execute `composer update` in your project directory to install the extension.

### Enabling the component

[](#enabling-the-component)

You can use the classes of the SDK right away. If you would like to configure the SDK globally (not specifying the configuration every time you create an instance of one of the classes), you can use the built-in component.

The component must be enabled in Yii's configuration by adding an entry for it in the components section, for example:

```
'simplePayV2' => [
    'class' => 'znagy\SimplePayV2\SimplePayV2',
    'sdkConfig' => [
        'HUF_MERCHANT' => '',
        'HUF_SECRET_KEY' => '',
        'URL' => ['/order/status'],
        'LOGGER' => true,
        'LOG_PATH' => dirname(__DIR__) . '/logs',
    ],
    'defaultCurrency' => 'HUF',
    'defaultLanguage' => 'HU',
    'defaultPaymentMethod' => 'CARD',
    'defaultTimeoutInSec' => '600',
],

```

Please refer to the [SimplePay SDK documentation](http://simplepartner.hu/download.php?target=dochu) for more information on how to configure the SDK.
For URL configuration (e.g. URL, URLS) you can use a Yii style route which will be processed by a Url::to() call.

You can use the component for example the following way:

```
$trx = Yii::$app->get('simplePay')->createSimplePayIpn();

if ($trx->isIpnSignatureCheck($json)) {
    // TODO: finalize order
    $trx->runIpnConfirm();
} else {
    echo 'IPN request is not valid';
}
```

Every Simple class has a corresponding function in the component to make them easy to use with the global configuration.

The above example would look like this without the component:

```
$config = Yii::$app->params['simplePayV2Config'];

$trx = new SimplePayIpn;
$trx->addConfig($config);

if ($trx->isIpnSignatureCheck($json)) {
    // TODO: finalize order
    $trx->runIpnConfirm();
} else {
    echo 'IPN request is not valid';
}
```

Where the `$config` is the array of options for the SDK, possibly stored in the application's params.php.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity27

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/1819277?v=4)[Zoltán Nagy](/maintainers/znagy)[@znagy](https://github.com/znagy)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/znagy-yii2-simplepay-v2/health.svg)

```
[![Health](https://phpackages.com/badges/znagy-yii2-simplepay-v2/health.svg)](https://phpackages.com/packages/znagy-yii2-simplepay-v2)
```

###  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)
