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

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

joni-jones/yii2-2checkout
=========================

Yii2 extension for 2checkout library

0.0.1(9y ago)11.8k1MITPHP

Since Jul 20Pushed 9y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)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.

[![Latest Stable Version](https://camo.githubusercontent.com/57d690daec0d1b3c1b2190fab14b8bbd8e1e24614dd4d2d765e58e407d952b14/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6e692d6a6f6e65732f796969322d32636865636b6f75742f762f737461626c65)](https://packagist.org/packages/joni-jones/yii2-2checkout)[![Total Downloads](https://camo.githubusercontent.com/12c7a41c92f54087a9c2b59e706ad4b6ee40449d9c762c4e05877b4e94bf20bf/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6e692d6a6f6e65732f796969322d32636865636b6f75742f646f776e6c6f616473)](https://packagist.org/packages/joni-jones/yii2-2checkout)[![License](https://camo.githubusercontent.com/1cf72ab463cc375f9cb85e700d84b57aa88bcf028917724578586818666afa29/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6e692d6a6f6e65732f796969322d32636865636b6f75742f6c6963656e7365)](https://packagist.org/packages/joni-jones/yii2-2checkout)

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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3583d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98dc304c67b7a16776631b1b2058be9c4dc084cc3c1986e17c03689a5bbb609a?d=identicon)[joni-jones](/maintainers/joni-jones)

---

Top Contributors

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

---

Tags

2checkout-libraryyii2yii2paymentgateway2checkout2co

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)

PHPackages © 2026

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