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

ActiveLibrary[API Development](/categories/api)

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 3w 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 57% 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

3752d 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://avatars.githubusercontent.com/u/3754009?v=4)[蔡忠振](/maintainers/caicaicai)[@caicaicai](https://github.com/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.5k5.8M712](/packages/sylius-sylius)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M521](/packages/shopware-core)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M464](/packages/pimcore-pimcore)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)[oro/platform

Business Application Platform (BAP)

642140.7k104](/packages/oro-platform)

PHPackages © 2026

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