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

ActiveLibrary[API Development](/categories/api)

trrtly/wechat
=============

easywechat for hyperf

v3.1.0(2y ago)22.1k2MITPHPPHP &gt;=7.4

Since Nov 28Pushed 2y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (12)Versions (11)Used By (0)

hyperf easywechat
=================

[](#hyperf-easywechat)

针对 hyperf 的 [easywechat](https://github.com/w7corp/easywechat) 组件.

安装
--

[](#安装)

```
composer require trrtly/wechat
```

示例
--

[](#示例)

```
use Trrtly\Wechat\Wechat;
use Hyperf\Di\Annotation\Inject;
use Hyperf\Contract\ConfigInterface;

class Example
{
    public function transferToBalance(ConfigInterface $config)
    {
        $app = Wechat::payment($config->get('wechat.payment'));
        $response = $app->transfer->toBalance([
            'partner_trade_no' => '1233455', // 商户订单号，需保持唯一性(只能是字母或者数字，不能包含有符号)
            'openid' => 'oxTWIuGaIt6gTKsQRLau2M0yL16E',
            'check_name' => 'FORCE_CHECK', // NO_CHECK：不校验真实姓名, FORCE_CHECK：强校验真实姓名
            're_user_name' => '王小帅', // 如果 check_name 设置为FORCE_CHECK，则必填用户真实姓名
            'amount' => 10000, // 企业付款金额，单位为分
            'desc' => '理赔', // 企业付款操作说明信息。必填
        ]);
        var_dump($response);
    }
}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~85 days

Recently: every ~189 days

Total

10

Last Release

864d ago

Major Versions

v0.0.6 → v3.0.02023-03-14

PHP version history (2 changes)v0.0.1PHP &gt;=7.3

v3.0.2PHP &gt;=7.4

### Community

Maintainers

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

---

Top Contributors

[![trrtly](https://avatars.githubusercontent.com/u/16716327?v=4)](https://github.com/trrtly "trrtly (9 commits)")[![suyar](https://avatars.githubusercontent.com/u/15704489?v=4)](https://github.com/suyar "suyar (1 commits)")

---

Tags

phphyperfeasywechat

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[jianyan74/yii2-easy-wechat

WeChat SDK for yii2, 基于 overtrue/easywechat

14339.4k1](/packages/jianyan74-yii2-easy-wechat)[limingxinleo/feishu

飞书SDK

2712.4k](/packages/limingxinleo-feishu)[naixiaoxin/hyperf-wechat

Wechat SDK For Hyperf

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

PHPackages © 2026

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