PHPackages                             tecsin/yii2-voguepay - 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. tecsin/yii2-voguepay

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

tecsin/yii2-voguepay
====================

A VoguePay Extension for Yii2 Framework

2.0.0(7y ago)292BSD-3-ClausePHP

Since Jan 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/onyijne/yii2-voguepay)[ Packagist](https://packagist.org/packages/tecsin/yii2-voguepay)[ RSS](/packages/tecsin-yii2-voguepay/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

I transfered this repo from my organization as I won't be needing the organization [tecsin](https://github.com/tecsin) again for proper management sake. Will update the namespace to onyijne in next release which will break from current release.
====================================================================================================================================================================================================================================================

[](#i-transfered-this-repo-from-my-organization-as-i-wont-be-needing-the-organization-tecsin-again-for-proper-management-sake-will-update-the-namespace-to-onyijne-in-next-release-which-will-break-from-current-release)

Pay2
====

[](#pay2)

VoguePay Payment Processor Extension for Yii2 Framework (Command API is in beta). Pay2 is a Yii2 wrapper for VoguePay Payment Processor Mobile/Server-to-Server and Command Api. Mobile/Server-to-Server API let you get a link token for payment by sending your merchant ID and other necessary parameters.

Command API allows you to directly perfom several actions (fetch transactions details, pay a user, withdraw money to bank accounts, create a new user) on VoguePay from your application.

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

[](#installation)

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

Either run

```
composer require --prefer-dist tecsin/yii2-voguepay "~2.0.0"

```

or add

```
"tecsin/yii2-voguepay": "~2.0.0"

```

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

Usage
-----

[](#usage)

First set up the database by running the migration code :

```
php yii migrate --migrationPath="@vendor/tecsin/yii2-voguepay/migrations"

```

After which you should add pay2 to the modules section of your application component like

```
'components' => [
    //...
    'modules' => [
        //...
        'pay2' => [
            'class' => 'tecsin\pay2\Module',
            'userModelClass' => 'app\models\User',
            'controllerMap' => [
                'manage' => [
                    'class' => 'yii2mod\comments\controllers\ManageController',
                    'layout' => '@app/modules/admin/views/layouts/main',
                    'accessControlConfig' => [
                        'class' => 'yii\filters\AccessControl',
                        'rules' => [
                            [
                                'allow' => true,
                                'roles' => ['admin', 'manager'],
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ],
],
```

and setup your VoguePay details via project.com/pay2.

Notification and Pay Now Button
-------------------------------

[](#notification-and-pay-now-button)

Get notifications from VoguePay and save data to db before sending user to voguepay.

```

```

Mobile/Server-to-Server
-----------------------

[](#mobileserver-to-server)

You can either send user to VoguePay payment page directly (this is the default):

```
    $MsModel = new \tecsin\pay2\models\VoguepayMs(['aaaMerchantId' => '11111', 'mmmMemo' => 'one sparklyn yellow wedding dress', 'tttTotalCost' => '200310', 'rrrMerchantRef' => time().mt_rand(0,999999999)]);
    if($MsModel->validate()){
       return $MsModel->setRequest()->sendRequest()->sendResponse();
    }
```

Or show the user a pay button (set showPayButton property to true):

```
    $MsModel = new \tecsin\pay2\models\VoguepayMs(['aaaMerchantId' => '11111', 'mmmMemo' => 'one sparklyn yellow wedding dress', 'tttTotalCost' => '200310', 'rrrMerchantRef' => time().mt_rand(0,999999999), 'showPayButton' => true]);
    if($MsModel->validate()){
        $response =  $MsModel->setRequest()->sendRequest()->sendResponse();
        return $response;//response is json {status: "success|error", success|error : { message: "https://www.voguepay.com/payment-url|errorMesssge"}}
    }
```

Command API
-----------

[](#command-api)

With the Command API you can Fetch records of transactions, Pay (send money) to VoguePay merchants, Withdraw money to various bank accounts, and create a new user on VoguePay.

See tecsin\\pay2\\models\\Money for withdrawal example
------------------------------------------------------

[](#see-tecsinpay2modelsmoney-for-withdrawal-example)

Read More.
----------

[](#read-more)

See [VoguePay](https://voguepay.com/developers) Developer Page

Contributions
-------------

[](#contributions)

Contributions re highly welcome in any form deemed fit

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

Every ~242 days

Total

3

Last Release

2910d ago

Major Versions

0.0.2 → 2.0.02018-05-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa2ad3f025533b326503b2af033c696343c4693b61fd6c055206eb813f39f21b?d=identicon)[onyijne](/maintainers/onyijne)

---

Top Contributors

[![onyijne](https://avatars.githubusercontent.com/u/6826336?v=4)](https://github.com/onyijne "onyijne (21 commits)")

---

Tags

yii2extensionpaymentvoguepayprocessor

### Embed Badge

![Health badge](/badges/tecsin-yii2-voguepay/health.svg)

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

PHPackages © 2026

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