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

ActiveLibrary

brayun/yii2-wechat
==================

wechat sdk for yii2, base easy wechat

1.3(8y ago)015MITPHP

Since Sep 7Pushed 8y agoCompare

[ Source](https://github.com/brayun/yii2-wechat)[ Packagist](https://packagist.org/packages/brayun/yii2-wechat)[ RSS](/packages/brayun-yii2-wechat/feed)WikiDiscussions master Synced today

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

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

[](#installation)

```
composer require brayun/yii2-wechat

```

Configuration
-------------

[](#configuration)

Add the SDK as a yii2 application `component` in the `config/main.php`:

```
'components' => [
	'wechat' => [
		'class' => 'brayun\wechat\Wechat',
		// 'wechatOptions' => []  # 不配置默认获取Yii::$app->params['WECHAT']，如配置则使用此配置
		// 'sessionParam' => '' # wechat user info will be stored in session under this key
		// 'returnUrlParam' => '' # returnUrl param stored in session
	],
]
```

```
// 微信网页授权:
if(Yii::$app->wechat->isWechat && !Yii::$app->wechat->isAuthorized()) {
	return Yii::$app->wechat->authorizeRequired();
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 73.3% 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 ~0 days

Total

4

Last Release

3169d ago

### Community

Maintainers

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

---

Top Contributors

[![barey-cc](https://avatars.githubusercontent.com/u/4272244?v=4)](https://github.com/barey-cc "barey-cc (11 commits)")[![brayun](https://avatars.githubusercontent.com/u/31040271?v=4)](https://github.com/brayun "brayun (4 commits)")

### Embed Badge

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

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

PHPackages © 2026

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