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

ActiveLibrary

caicai/wechat
=============

微信公众平台第三方 SDK 开发包，优雅、健壮，可扩展，遵循 PSR 开发规范。

2.1.2(10y ago)016MITPHPPHP &gt;=5.5.9

Since Sep 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/caicaicai/wechat)[ Packagist](https://packagist.org/packages/caicai/wechat)[ Docs](http://github.com/caicai/wechat)[ RSS](/packages/caicai-wechat/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (8)Versions (24)Used By (0)

简介
==

[](#简介)

微信公众平台第三方 SDK 开发包，优雅、健壮，可扩展，遵循 [PSR](http://www.php-fig.org/) 开发规范。

安装
==

[](#安装)

```
composer require thenbsp/wechat

```

功能
==

[](#功能)

- 基础支持
    - \[缓存\] ([https://github.com/thenbsp/wechat/wiki/wechat\_cache](https://github.com/thenbsp/wechat/wiki/wechat_cache))
    - [日志](https://github.com/thenbsp/wechat/wiki/wechat_logger)
    - [全局 AccessToken](https://github.com/thenbsp/wechat/wiki/wechat_access_token)
    - [生成 Jsapi 配置](https://github.com/thenbsp/wechat/wiki/wechat_jsapi)
    - [生成带参数的二维码](https://github.com/thenbsp/wechat/wiki/wechat_qrcode)
    - [获取微信服务器 IP](https://github.com/thenbsp/wechat/wiki/wechat_server_ip)
    - [生成短链接](https://github.com/thenbsp/wechat/wiki/wechat_short_url)
- 网页授权
    - [网页授权获取用户信息](https://github.com/thenbsp/wechat/wiki/oauth_client)
    - [用户 AccessToken](https://github.com/thenbsp/wechat/wiki/oauth_access_token)
- 自定义菜单
    - [创建菜单](https://github.com/thenbsp/wechat/wiki/menu_create)
    - [查询菜单](https://github.com/thenbsp/wechat/wiki/menu_query)
    - [删除菜单](https://github.com/thenbsp/wechat/wiki/menu_delete)
- 微信支付
    - [统一下单](https://github.com/thenbsp/wechat/wiki/payment_unifiedorder)
    - [公众号支付](https://github.com/thenbsp/wechat/wiki/payment_jsapi)
    - [扫码支付（临时模式）](https://github.com/thenbsp/wechat/wiki/payment_temporary)
    - [扫码支付（永久模式）](https://github.com/thenbsp/wechat/wiki/payment_forever)
    - [支付通知](https://github.com/thenbsp/wechat/wiki/payment_notify)
    - [现金红包](https://github.com/thenbsp/wechat/wiki/payment_coupon_cash)
    - [共享收货地址组件](https://github.com/thenbsp/wechat/wiki/payment_address)
- 消息管理
    - [消息实体](https://github.com/thenbsp/wechat/wiki/message_entity)
    - [模板消息](https://github.com/thenbsp/wechat/wiki/message_template)
- 事件系统
    - [事件监听](https://github.com/thenbsp/wechat/wiki/event_system)
    - [被动回复消息](https://github.com/thenbsp/wechat/wiki/event_response)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 96.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 ~9 days

Recently: every ~15 days

Total

22

Last Release

3707d ago

Major Versions

v1.1.7 → v2.0.02016-03-05

PHP version history (2 changes)v1.0.0PHP &gt;=5.4

v2.0.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c1f486488386126a3447bdf4df0f8cb3aa0213bf5d5c5463e05271c9e7d7bf8?d=identicon)[caicaicai](/maintainers/caicaicai)

---

Top Contributors

[![thenbsp](https://avatars.githubusercontent.com/u/2419899?v=4)](https://github.com/thenbsp "thenbsp (105 commits)")[![caicaicai](https://avatars.githubusercontent.com/u/3754009?v=4)](https://github.com/caicaicai "caicaicai (4 commits)")

---

Tags

sdkwechatweixin

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[thenbsp/wechat

微信公众平台第三方 SDK 开发包，优雅、健壮，可扩展，遵循 PSR 开发规范。

9408.2k](/packages/thenbsp-wechat)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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