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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

luweiss/wechat
==============

PHP Wechat SDK

0.1.5(6y ago)31.7k111PHP

Since Dec 12Pushed 6y ago1 watchersCompare

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

READMEChangelog (6)Dependencies (2)Versions (7)Used By (1)

PHP Wechat SDK
==============

[](#php-wechat-sdk)

Usage
-----

[](#usage)

### Install

[](#install)

```
composer require 'luweiss/wechat'
```

### Wechat

[](#wechat)

```
require __DIR__ . '/vendor/autoload.php';

$wechat = new \luweiss\Wechat\Wechat();
$accessToken = $wechat->getAccessToken;
```

### WechatPay

[](#wechatpay)

```
require __DIR__ . '/vendor/autoload.php';

$wechatPay = new \luweiss\Wechat\WechatPay();
$res = $wechatPay->unifiedOrder();
```

### WechatApi

[](#wechatapi)

`微信接口调用类`

### WechatSubscribe

[](#wechatsubscribe)

`订阅消息接口`

```
$wechat = new \luweiss\Wechat\Wechat();
$tid = 434;     // 模板标题 id，可通过接口获取，也可登录小程序后台查看获取
$kidList = [6, 5, 9, 1];      // 开发者自行组合好的模板关键词列表，可以通过 `getTemplateKeywords` 方法获取
$sceneDesc = '下单成功通知';    // 服务场景描述，非必填

$wechatSubscribe = new \luweiss\Wechat\WechatSubscribe($wechat);
$res = $wechatSubscribe->addTemplate($tid, $kidList, $sceneDesc);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.5% 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 ~36 days

Recently: every ~45 days

Total

6

Last Release

2525d ago

### Community

Maintainers

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

---

Top Contributors

[![luweiwei](https://avatars.githubusercontent.com/u/13392064?v=4)](https://github.com/luweiwei "luweiwei (19 commits)")[![753717010](https://avatars.githubusercontent.com/u/32725576?v=4)](https://github.com/753717010 "753717010 (2 commits)")

---

Tags

wechat

### Embed Badge

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

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

###  Alternatives

[w7corp/easywechat

微信SDK

10.4k761.6k60](/packages/w7corp-easywechat)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1414.8k](/packages/pdir-social-feed-bundle)[chowjiawei/laravel-help-plugin

Integrating useful auxiliary functions into laravel,Assistant tools based on laravel.

671.6k](/packages/chowjiawei-laravel-help-plugin)[ymlluo/group-robot

钉钉、企业微信、飞书 自定义群组机器人。支持链式语法创建发送消息。支持文本、Markdown、图片、文件、图文、卡片等消息。

233.8k1](/packages/ymlluo-group-robot)

PHPackages © 2026

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