PHPackages                             randy/weopen-developer - 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. randy/weopen-developer

ActiveLibrary[API Development](/categories/api)

randy/weopen-developer
======================

WeChat Open development of SDK

v1.4.2(6y ago)025MITPHPPHP &gt;=5.4

Since Mar 21Pushed 6y agoCompare

[ Source](https://github.com/18827676454/we_developer)[ Packagist](https://packagist.org/packages/randy/weopen-developer)[ RSS](/packages/randy-weopen-developer/feed)WikiDiscussions master Synced 6d ago

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

WeOpenDeveloper
===============

[](#weopendeveloper)

WeOpenDeveloper 为微信开放平台服务开发工具，基于 WeChatDeveloper 可对公众号进行管理。 更多功能可以参考下面的文档。

Documentation
-------------

[](#documentation)

> WeChatDeveloper 是基于官方接口封装，在做微信开发前，必需先阅读微信官方文档。
>
> - 微信官方文档：
> - 开放平台文档：
> - 商户支付文档：

> 针对 WeChatDeveloper 也有一准备了帮助资料可供参考。
>
> - WeChatDeveloper 文档：

- 接口实例所需参数

```
// 配置参数（可以公众号服务平台获取）
$config = [
    'component_appid'          => 'wx4e63e993e222df8d',
    'component_token'          => 'P8QHTIxpBEq88IrxatqhgpBm2OAQROkI',
    'component_appsecret'      => '7cfa1afa87a41e2ea3445cea015c0974',
    'component_encodingaeskey' => 'L5uFIa0U6KLalPyXckyqoVIJYLhsfrg8k9YzybZIHsx',
];

// 注册授权公众号 AccessToken 处理
$config['GetAccessTokenCallback'] = function ($authorizer_appid) use ($config) {
    $open = new \WeOpen\Service($config);
    $authorizer_refresh_token = ''; // 通过$authorizer_appid从数据库去找吧，在授权绑定的时候获取
    $result = $open->refreshAccessToken($authorizer_appid, $authorizer_refresh_token);
    if (empty($result['authorizer_access_token'])) {
        throw new \WeChat\Exceptions\InvalidResponseException($result['errmsg'], '0');
    }
    $data = [
        'authorizer_access_token'  => $result['authorizer_access_token'],
        'authorizer_refresh_token' => $result['authorizer_refresh_token'],
    ];
    // 需要把$data记录到数据库
    return $result['authorizer_access_token'];
};
```

- Ticket 接收处理

```
try{

    // 实例公众号服务接口
    $server = new \WeOpen\Service($config);

    // 获取并更新Ticket推送
    if (!($data = $server->getComonentTicket())) {
        return "Ticket event handling failed.";
    }

} catch (Exception $e) {

    // 出错啦，处理下吧
    echo $e->getMessage() . PHP_EOL;

}
```

- 实例指定接口

```
try{

    // 实例公众号服务接口
    $open = new \WeOpen\Service($config);

    // 获取公众号接口操作实例
    $wechat = $open->instance('User', 'wx60a43dd8161666d4');

    // 获取公众号粉丝列表
    $list = $wechat->getUserList();
    var_export($list);

} catch (Exception $e) {

    // 出错啦，处理下吧
    echo $e->getMessage() . PHP_EOL;

}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 90.1% 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 ~77 days

Recently: every ~120 days

Total

8

Last Release

2435d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa0179ca6ef9ab82a2d744227d219106a7b2e9b69655ea3ab36b7c7e888d95bd?d=identicon)[randy\_chen](/maintainers/randy_chen)

---

Top Contributors

[![zoujingli](https://avatars.githubusercontent.com/u/4349951?v=4)](https://github.com/zoujingli "zoujingli (64 commits)")[![18827676454](https://avatars.githubusercontent.com/u/30037579?v=4)](https://github.com/18827676454 "18827676454 (6 commits)")[![dacheng-gao](https://avatars.githubusercontent.com/u/13791720?v=4)](https://github.com/dacheng-gao "dacheng-gao (1 commits)")

---

Tags

wechatWeChatOpenWeChatOpenDeveloper

### Embed Badge

![Health badge](/badges/randy-weopen-developer/health.svg)

```
[![Health](https://phpackages.com/badges/randy-weopen-developer/health.svg)](https://phpackages.com/packages/randy-weopen-developer)
```

###  Alternatives

[overtrue/laravel-wechat

微信 SDK for Laravel

3.0k1.8M53](/packages/overtrue-laravel-wechat)[zoujingli/wechat-developer

WeChat and Alipay Platform Development

1.6k136.9k14](/packages/zoujingli-wechat-developer)[zoujingli/weopen-developer

WeChat Open Platform Development

9113.4k2](/packages/zoujingli-weopen-developer)[thenbsp/wechat

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

9408.2k](/packages/thenbsp-wechat)[naixiaoxin/think-wechat

EasyWechat For Thnkphp5.1+

27316.1k1](/packages/naixiaoxin-think-wechat)[jianyan74/yii2-easy-wechat

WeChat SDK for yii2, 基于 overtrue/easywechat

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

PHPackages © 2026

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