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

ActiveLibrary[API Development](/categories/api)

waljqiang/wechat
================

wechat official plat

3.1(4y ago)014[2 PRs](https://github.com/waljqiang/wechat/pulls)1MITPHPPHP &gt;=5.4

Since Mar 4Pushed 3y agoCompare

[ Source](https://github.com/waljqiang/wechat)[ Packagist](https://packagist.org/packages/waljqiang/wechat)[ RSS](/packages/waljqiang-wechat/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (4)Versions (30)Used By (1)

wechat
======

[](#wechat)

sdk for wechat official palt

备注
--

[](#备注)

- 因微信接口请求次数有限制，所以尽量不要关闭Redis缓存，即Redis配置中的enabled应该设为true,如果强制关闭Redis缓存，则用户需要根据自己需要实现缓存。
- access\_token缓存时间不应该超过微信文档中提到的access\_token过期时间。

调试
--

[](#调试)

- 请自行将日志路径设置到需要存放的位置，同时日志级别设置自己需要的日志级别即可，线上环境建议将日志信息设置为ERROR。

消息说明
----

[](#消息说明)

- 如果公众号配置的是明文消息，请将Wechat类的$encoded属性设置为false，如果公众号中配置的是加密消息，请将该属性设置为true。
- 公众号推送的消息，接收后请导向$wechat-&gt;handleWechatMessage($message,$appid,$signature,$timestamp,$nonce,$echostr)来解析，该方法解析后可将消息转变成数组。
- 如需要公众号回复用户消息，请使用$wechat-&gt;replyUser($messageType,$message)方法，其中$messageType在Waljqiang\\Wechat\\Handles\\Reply::class中已经定义好，不要使用其他的消息类型值。

API文档
-----

[](#api文档)

- 访问wechat/docs/api.html文件查看

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

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

Every ~20 days

Recently: every ~0 days

Total

27

Last Release

1738d ago

Major Versions

1.7 → 2.02021-08-05

2.8 → 3.02021-08-13

### Community

Maintainers

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

---

Top Contributors

[![waljqiang](https://avatars.githubusercontent.com/u/10058619?v=4)](https://github.com/waljqiang "waljqiang (57 commits)")

### Embed Badge

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

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[googleads/googleads-php-lib

Google Ad Manager SOAP API Client Library for PHP

67410.3M25](/packages/googleads-googleads-php-lib)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k379.4k24](/packages/team-reflex-discord-php)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[ashallendesign/laravel-exchange-rates

A wrapper package for interacting with the exchangeratesapi.io API.

485677.8k](/packages/ashallendesign-laravel-exchange-rates)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

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