PHPackages                             chinahub/yii2-wechat-pay - 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. chinahub/yii2-wechat-pay

ActiveYii2-extension

chinahub/yii2-wechat-pay
========================

wechat pay sdk for yii2

v1.0(10y ago)01312[1 issues](https://github.com/chinahub/yii2-wechat-pay/issues)MITPHP

Since Apr 5Pushed 10y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

wechat pay sdk for yii2
=======================

[](#wechat-pay-sdk-for-yii2)

wechat pay sdk for yii2

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist chinahub/yii2-wechat-pay "*"

```

or add

```
"chinahub/yii2-wechat-pay": "*"

```

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

Configure
---------

[](#configure)

To use this extension, you have to configure the Connection class in your application configuration:

```
'components' => [
	'wxPay' => [
		'class' => 'chinahub\wechat\WxPayConfig',
		'app_id' => '8888888888888',
		'mch_id' => '9999999999999999',
		'app_key' => '11111111111111111',
		'app_secret' => '777777777777777777',
	],
]
```

Usage
-----

[](#usage)

please wait...

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

3690d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b2ed42d98307118d4905d78e2898bc40c55ad37f19c035697bab4b29d756ac4?d=identicon)[chinahub](/maintainers/chinahub)

---

Tags

yii2extensionpaywechat

### Embed Badge

![Health badge](/badges/chinahub-yii2-wechat-pay/health.svg)

```
[![Health](https://phpackages.com/badges/chinahub-yii2-wechat-pay/health.svg)](https://phpackages.com/packages/chinahub-yii2-wechat-pay)
```

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[abei2017/yii2-wx

一个专注于yii2的微信sdk

1482.8k](/packages/abei2017-yii2-wx)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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