PHPackages                             frankirox/yii2-2checkout - 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. frankirox/yii2-2checkout

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

frankirox/yii2-2checkout
========================

Yii2 extension for 2checkout library forked from joni-jones/yii2-2checkout

0212PHP

Since Jan 2Pushed 11y ago1 watchersCompare

[ Source](https://github.com/frankirox/yii2-2checkout)[ Packagist](https://packagist.org/packages/frankirox/yii2-2checkout)[ RSS](/packages/frankirox-yii2-2checkout/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

2Checkout PHP library for Yii 2
===============================

[](#2checkout-php-library-for-yii-2)

Extension provides access for [2Checkout library](https://github.com/2Checkout/2checkout-php) methods from Yii2 framework.

How to install?
---------------

[](#how-to-install)

Get it via [composer](http://getcomposer.org/) by adding the package to your `composer.json`:

```
{
  "require": {
    "joni-jones/yii2-2checkout": "*"
  }
}
```

or run

```
php composer.phar require --prefer-dist joni-jones/yii2-2checkout "*"

```

Usage
-----

[](#usage)

Once the extension is installed, simply modify your application configuration as follows:

```
return [
    'components' => [
        'twocheckout' => [
            'class' => 'yii\twocheckout\Twocheckout',
            'privateKey' => '',
            'sellerId' => '',
            'secretWord' => '', //by default is 'tango'
            'username' => '', //required to Admin API call
            'password' => '', //required to Admin API call
            'sandbox' => true, //by default false,
        ]
    ],
    // ...
];
```

The `Charge` class usage example (equal to `Twocheckout_Charge::form()`):

```
$product['currency_code'] = 'USD';
$product['mode'] = '2CO';
$product['li_0_price'] = '0.01';
$product['merchant_order_id'] = '1122312';
$product['li_0_name'] = 'Credit';
$product['li_0_quantity'] = '1';
$product['li_0_type'] = 'product';
$product['li_0_tangible'] = 'N';
$product['li_0_product_id'] = '43242342';
$product['sid'] = Yii::$app->twocheckout->sellerId;
$product['demo'] = Yii::$app->twocheckout->demo;
$product['key'] = md5($product['merchant_order_id'].$product['li_0_product_id']);
Yii::$app->twocheckout->charge->form($product);
```

Full documentation you can find on [2Checkout](https://www.2checkout.com/documentation/libraries/php) site.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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://www.gravatar.com/avatar/db0c0984b9d3ae88dfa6542b92f5509624c1ebbc4fe89112421b1f1f44e01dee?d=identicon)[frankirox](/maintainers/frankirox)

---

Top Contributors

[![YevSent](https://avatars.githubusercontent.com/u/2736528?v=4)](https://github.com/YevSent "YevSent (15 commits)")[![frankirox](https://avatars.githubusercontent.com/u/1335554?v=4)](https://github.com/frankirox "frankirox (5 commits)")

### Embed Badge

![Health badge](/badges/frankirox-yii2-2checkout/health.svg)

```
[![Health](https://phpackages.com/badges/frankirox-yii2-2checkout/health.svg)](https://phpackages.com/packages/frankirox-yii2-2checkout)
```

###  Alternatives

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