PHPackages                             syships/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. syships/yii2-wechat

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

syships/yii2-wechat
===================

The wechat SDK for the Yii2 framework

0.0.13(1y ago)014Apache-2.0PHPPHP &gt;=7.2

Since Jul 14Pushed 1y ago1 watchersCompare

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

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

This is a personal plugin for study. It is strongly recomended that you not use it. This plugin is unstable.
============================================================================================================

[](#this-is-a-personal-plugin-for-studyit-is-strongly-recomended-that-you-not-use-itthis-plugin-is-unstable)

It is the wechat plugin for yii2
================================

[](#it-is-the-wechat-plugin-for-yii2)

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

[](#installation)

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

Either run

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

```

or add

```
"syships/yii2-wechat": "*"

```

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

Usage
-----

[](#usage)

Before using the extension,you can add the \_ide\_helper.php under your application folder.

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

config：

```
'components' => [
    'wechat' => [
        'class' => 'syships\wechat\application',
        'app_id' => 'wxe138031c9ec0a441',//appid
        'secret' => '3becb42c9c13a9db50c066e633ffd872',//secret
    ],
],

```

You can use the code below to get access\_token：

Yii::$app-&gt;wechat-&gt;getAccessToken();

Yii::$app-&gt;wechat-&gt;getStableAccessToken();

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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 ~0 days

Total

3

Last Release

718d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/101991678?v=4)[syships](/maintainers/syships)[@syships](https://github.com/syships)

---

Top Contributors

[![syships](https://avatars.githubusercontent.com/u/101991678?v=4)](https://github.com/syships "syships (24 commits)")

---

Tags

yii2extensionwechat

### Embed Badge

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

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

###  Alternatives

[abei2017/yii2-wx

一个专注于yii2的微信sdk

1472.8k](/packages/abei2017-yii2-wx)[imanilchaudhari/yii2-currency-converter

This extension will help to find out current currency conversion rate.

2111.7k](/packages/imanilchaudhari-yii2-currency-converter)[degordian/yii2-webhooks

Yii2 extension for webhooks

107.3k](/packages/degordian-yii2-webhooks)

PHPackages © 2026

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