PHPackages                             onming/wechat-php-sdk - 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. onming/wechat-php-sdk

ActiveLibrary[API Development](/categories/api)

onming/wechat-php-sdk
=====================

微信php-sdk

1.0.3(5y ago)135MITPHPPHP &gt;=7.0

Since Jan 5Pushed 5y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (3)Used By (0)

wechat-php-sdk
==============

[](#wechat-php-sdk)

微信sdk插件 将会陆续更新

环境准备
----

[](#环境准备)

- PHP 7.0+ 您可以通过`php -v`命令查看当前的 PHP 版本。
- curl 扩展 您可以通过`php -m`命令查看 curl 扩展是否已经安装好。

安装方式
----

[](#安装方式)

### Composer 方式

[](#composer-方式)

```
composer require onming/wechat-php-sdk ~1.0

```

### 使用方法

[](#使用方法)

```
use Onming\WechatPhpSdk\Jssdk;
$jssdk = new Jssdk(app_id, app_secret, 'thinkphp'); // 第三参数如果为thinkphp则采用tp自带缓存，默认空使用文件缓存需设置temp目录读写权限
$signPackage = $jssdk->GetSignPackage($url); // url参数可以动态传递否则默认取当前访问链接
var_dump($signPackage);

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Total

2

Last Release

1949d ago

### Community

Maintainers

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

---

Top Contributors

[![onming](https://avatars.githubusercontent.com/u/3692010?v=4)](https://github.com/onming "onming (9 commits)")

---

Tags

phpwechatwechat-php-sdk

### Embed Badge

![Health badge](/badges/onming-wechat-php-sdk/health.svg)

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

###  Alternatives

[jianyan74/yii2-easy-wechat

WeChat SDK for yii2, 基于 overtrue/easywechat

14339.4k1](/packages/jianyan74-yii2-easy-wechat)[gaoming13/wechat-php-sdk

微信公众平台php版开发包

3311.7k](/packages/gaoming13-wechat-php-sdk)[naixiaoxin/hyperf-wechat

Wechat SDK For Hyperf

151.8k](/packages/naixiaoxin-hyperf-wechat)

PHPackages © 2026

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