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

ActiveLibrary[API Development](/categories/api)

zyan/wechat-factory
===================

easywechat 6.0 工厂

1.0.2(3y ago)13MITPHPPHP &gt;=8.0.2

Since Oct 14Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (3)Used By (0)

zyan/wechat-factory
===================

[](#zyanwechat-factory)

这是easywechat 6.0 工厂

要求
--

[](#要求)

1. php &gt;= 8.0.2
2. Composer

安装
--

[](#安装)

```
composer require zyan/wechat-factory -vvv
```

使用
--

[](#使用)

```
use Zyan\WechatFactory\WechatFactory;

$config = [
    'app_id' => 'wx3cf0f39249eb0exx',
    'secret' => 'f1c242f4f28f735d4687abb469072axx',
    'token' => 'easywechat',
    'aes_key' => '' // 明文模式请勿填写 EncodingAESKey
    //...
];

//小程序
$app = WechatFactory::miniApp($config);

//微信公众号
$app = WechatFactory::officialAccount($config);

//微信开放平台
$app = WechatFactory::openPlatform($config);

//企业微信开放平台
$app = WechatFactory::openWork($config);

//微信支付
$app = WechatFactory::pay($config);

//企业微信
$app = WechatFactory::work($config);
```

详细使用方法请参考 [easywechat](https://easywechat.com/) 官网

参与贡献
----

[](#参与贡献)

1. fork 当前库到你的名下
2. 在你的本地修改完成审阅过后提交到你的仓库
3. 提交 PR 并描述你的修改，等待合并

License
-------

[](#license)

[MIT license](https://opensource.org/licenses/MIT)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

1303d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fbcdf7ec634eb735375fa4f6046f91646934f9eb07456f4b4dcbdec545c6435b?d=identicon)[aa24615](/maintainers/aa24615)

---

Top Contributors

[![aa24615](https://avatars.githubusercontent.com/u/33275679?v=4)](https://github.com/aa24615 "aa24615 (3 commits)")

---

Tags

sdkwechateasywechat

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[overtrue/laravel-wechat

微信 SDK for Laravel

3.0k1.8M53](/packages/overtrue-laravel-wechat)[naixiaoxin/think-wechat

EasyWechat For Thnkphp5.1+

27316.1k1](/packages/naixiaoxin-think-wechat)

PHPackages © 2026

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