PHPackages                             shoaly/corp-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. shoaly/corp-wechat

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

shoaly/corp-wechat
==================

for wechat

5142PHP

Since Dec 18Pushed 9y ago2 watchersCompare

[ Source](https://github.com/shoaly/corp-wechat)[ Packagist](https://packagist.org/packages/shoaly/corp-wechat)[ RSS](/packages/shoaly-corp-wechat/feed)WikiDiscussions dev Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CorpWechat overture/wechat的企业号版本
================================

[](#corpwechat-overturewechat的企业号版本)

- 依赖有一些问题, 因为overtrue/socialite那边 有一个pull request 还没成功合并
- 用了80% overture/wechat的轮子, composer 也依赖 overtrue/wechat:3.1.\*
- 目的: 再导入企业号的配置之后, 用 overtrue/wechat的文档和对微信的改进思路无痛使用企业号
- 更详细的文档等待所有模块构建完成之后再补充吧.
- 本项目主要是在laravel中测试通过, 跟公众号那边类似 也需要注入一个config配置文件, 这里有默认模板:
- 如何安装:

```
composer require "shoaly/corp-wechat:dev-dev"

```

- 如何开始?

```
use CorpWechat\Foundation\Application;

...
$wechat_biz = new Application(config('corp-wechat'));
$server = $this->wechat_biz->server;
$server->setMessageHandler(function ($message) {
    // $message->FromUserName // 用户的 openid
    // $message->MsgType // 消息类型：event, text....
    // return sprintf("%s您好！欢迎关注我, 消息类型: %s",$message->FromUserName,$message->MsgType);
    return  new Image(['media_id' => "zUbMbXXXU7l3l4MsvVmUtHrIVUX7zbSO0OAYktfTCI1Xh-lxfBDiSyVeUqaTQbdm"]);
});
$response = $server->serve();
return $response; // Laravel 里请使用：return $response;

```

已经完成的模块:
--------

[](#已经完成的模块)

```
//oauth认证
ServiceProviders\OAuthServiceProvider::class,

//消息推送
ServiceProviders\NoticeServiceProvider::class,

// 用户模块
ServiceProviders\UserServiceProvider::class,

// h5 js jdk, 这个接口里面 openEnterpriseContact 由于前端没有任何错误提示, 搞得我死去活来啊~~~
ServiceProviders\JsServiceProvider::class,

// 媒体资源, 明天来开发这个保证 图片上传可以用
ServiceProviders\MaterialServiceProvider::class,

//响应 被动消息
ServiceProviders\ServerServiceProvider::class,

//微信菜单
ServiceProviders\MenuServiceProvider::class,

```

未完成模块:
------

[](#未完成模块)

```
// \EasyWeChat\Foundation\ServiceProviders\UrlServiceProvider::class, //短链接
// \EasyWeChat\Foundation\ServiceProviders\SemanticServiceProvider::class, //语义接口
// \EasyWeChat\Foundation\ServiceProviders\StatsServiceProvider::class, //数据统计接口
// \EasyWeChat\Foundation\ServiceProviders\PaymentServiceProvider::class, //微信支付
// \EasyWeChat\Foundation\ServiceProviders\POIServiceProvider::class, // 门店模块
// \EasyWeChat\Foundation\ServiceProviders\ReplyServiceProvider::class, //自动回复
// \EasyWeChat\Foundation\ServiceProviders\BroadcastServiceProvider::class, //群发消息
// \EasyWeChat\Foundation\ServiceProviders\CardServiceProvider::class, //会员卡
// \EasyWeChat\Foundation\ServiceProviders\DeviceServiceProvider::class, //微信硬件
// \EasyWeChat\Foundation\ServiceProviders\QRCodeServiceProvider::class, //制作带事件的二维码, 企业号目前还不支持

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![shoaly](https://avatars.githubusercontent.com/u/2660914?v=4)](https://github.com/shoaly "shoaly (8 commits)")

### Embed Badge

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

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

###  Alternatives

[digilist/snakedumper

5045.5k](/packages/digilist-snakedumper)

PHPackages © 2026

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