PHPackages                             xinyeweb/yii2-asiapay - 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. [API Development](/categories/api)
4. /
5. xinyeweb/yii2-asiapay

ActiveYii2-extension[API Development](/categories/api)

xinyeweb/yii2-asiapay
=====================

AsiaPay Hong Kong

v1.0(8y ago)012BSD-3-ClausePHP

Since Sep 8Pushed 8y ago2 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

AsiaPay
=======

[](#asiapay)

AsiaPay Hong Kong

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist xinyeweb/yii2-asiapay "dev-master"

```

or add

```
"xinyeweb/yii2-asiapay": "dev-master"

```

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

Usage
-----

[](#usage)

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

```
    $asiaPay = new AsiaPayClient('商戶號');
    //$orderRef, $amount, $successUrl, $failUrl, $cancelUrl, $remark="", $redirect="", $oriCountry="", $destCountry=""
    $asiaPay->requestPay(time(), 10, 'https://www.xinyeweb.com', 'https://www.xinyeweb.com', 'https://www.xinyeweb.com');
```

注意：需要在商戶後台設定好返回鏈接(數據反饋)，不要在支付結果頁面更新業務邏輯

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3169d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/38ec5021ede5f92c4c582206f421d3b379498fe0c58435d3ba714f0e5a72ddde?d=identicon)[hotarzhang](/maintainers/hotarzhang)

---

Top Contributors

[![hoterzhang](https://avatars.githubusercontent.com/u/9025927?v=4)](https://github.com/hoterzhang "hoterzhang (3 commits)")

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/xinyeweb-yii2-asiapay/health.svg)

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

###  Alternatives

[dotzero/yii2-amocrm

Расширение для Yii Framework 2 реализующее клиент для работы с API amoCRM

1639.7k](/packages/dotzero-yii2-amocrm)[conquer/services

Yii2 soap wsdl web services

1632.5k](/packages/conquer-services)[apexwire/yii2-restclient

Tools to use API as ActiveRecord for Yii2

143.5k](/packages/apexwire-yii2-restclient)

PHPackages © 2026

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