PHPackages                             buqiu/enterprise\_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. buqiu/enterprise\_wechat

ActiveLibrary

buqiu/enterprise\_wechat
========================

official lib of enterprise wechat api https://work.weixin.qq.com/api/doc

v2.0.6(1y ago)01.3k—3.4%[4 PRs](https://github.com/buqiu/enterprise_wechat/pulls)MITPHPPHP ^8.1

Since Dec 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/buqiu/enterprise_wechat)[ Packagist](https://packagist.org/packages/buqiu/enterprise_wechat)[ RSS](/packages/buqiu-enterprise-wechat/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (4)Versions (33)Used By (0)

Laravel Enterprise Wechat
=========================

[](#laravel-enterprise-wechat)

一个基于 `Laravel` 开发的企业微信 SDK

### 环境要求

[](#环境要求)

- PHP &gt;= 8.1
- Laravel &gt;= 10

### 安装

[](#安装)

###### 安装扩展包

[](#安装扩展包)

```
composer require buqiu/enterprise_wechat
```

###### 发布迁移文件

[](#发布迁移文件)

```
php artisan vendor:publish --tag=enterprise_wechat-migrations
```

### 目录

[](#目录)

- [环境要求](#%E7%8E%AF%E5%A2%83%E8%A6%81%E6%B1%82)
- [安装](#%E5%AE%89%E8%A3%85)
- [账号管理](#%E8%B4%A6%E5%8F%B7%E7%AE%A1%E7%90%86)
- [账号连接切换](#%E8%B4%A6%E5%8F%B7%E7%9A%84%E8%BF%9E%E6%8E%A5%E5%88%87%E6%8D%A2)
- [企微开发API](#%E4%BC%81%E5%BE%AE%E5%BC%80%E5%8F%91API)
- [企业微信API](#%E4%BC%81%E4%B8%9A%E5%BE%AE%E4%BF%A1API)

### 账号管理

[](#账号管理)

为了方便维护企微账号的管理, 本扩展包提供了 `Artisan` 命令行方式管理企微账号。[文档参考](docs/Commands/README.md)

### 账号的连接切换

[](#账号的连接切换)

本扩展包提供了 `connect` 方法，用于动态连接切换企微账号, 连接切换方式有如下两种：

使用 `id` 连接切换

```
EnterpriseWechatFacade::connect(id: 'id_xxx');
```

使用 `code` 连接切换

```
EnterpriseWechatFacade::connect(code: 'tag_xxx');
```

### 企微开发API

[](#企微开发api)

> 对接使用此部分文档开发

企微开发主要是同步企微数据入库操作, 用于管理查询企微数据。

###### 前置条件

[](#前置条件)

[账号连接切换](#%E8%B4%A6%E5%8F%B7%E7%9A%84%E8%BF%9E%E6%8E%A5%E5%88%87%E6%8D%A2)

###### 使用示例

[](#使用示例)

- [部门管理](docs/Libs/Department.md)
- [成员管理](docs/Libs/User.md)
- [标签管理](docs/Libs/Tag.md)
- [通讯录回调通知](docs/Libs/Callback.md)
- [身份认证](docs/Libs/Auth.md)
- [企业标签管理](docs/Libs/CorpTag.md)
- [客户管理](docs/Libs/Customer.md)
- [消息推送](docs/Libs/Message.md)
- [新客户欢迎](docs/Libs/Welcome.md)
- [群机器人](docs/Libs/Bot.md)
- [企业群发](docs/Libs/GroupMessage.md)
- [客户群管理](docs/Libs/GroupChat.md)
- [素材管理](docs/Libs/Media.md)
- [客户联系规则组管理](docs/Libs/Strategy.md)
- [朋友圈管理管理](docs/Libs/Moment.md)

### 企业微信API

[](#企业微信api)

在管理企微数据的同时，为了兼容企微的 `API`, 扩展包提供了 `api()` 方法，用于直接调用企微的 API 接口。

###### 前置条件

[](#前置条件-1)

[账号连接切换](#%E8%B4%A6%E5%8F%B7%E7%9A%84%E8%BF%9E%E6%8E%A5%E5%88%87%E6%8D%A2)

###### 使用示例

[](#使用示例-1)

- [获取 `access_token`](docs/Api/AccessToken.md)
- [部门管理](docs/Api/Department.md)
- [成员管理](docs/Api/User.md)
- [标签管理](docs/Api/Tag.md)
- [通讯录回调通知](docs/Api/Callback.md)
- [身份认证](docs/Api/Auth.md)
- [企业标签管理](docs/Api/CorpTag.md)
- [客户管理](docs/Api/Customer.md)
- [消息推送](docs/Api/Message.md)
- [群机器人](docs/Api/Bot.md)
- [企业群发](docs/Api/GroupMessage.md)
- [客户群管理](docs/Api/GroupChat.md)
- [素材管理](docs/Api/Media.md)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance47

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 76.9% 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 ~29 days

Total

28

Last Release

398d ago

Major Versions

v1.x-dev → v2.0.02024-11-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/97229ae0e947eeff418e092a036e90d81654fb9a640281ed22438ec5685bc22b?d=identicon)[buqiu](/maintainers/buqiu)

---

Top Contributors

[![smallLazy](https://avatars.githubusercontent.com/u/28730962?v=4)](https://github.com/smallLazy "smallLazy (10 commits)")[![smallk1002](https://avatars.githubusercontent.com/u/36835076?v=4)](https://github.com/smallk1002 "smallk1002 (3 commits)")

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[behamin/service-proxy

for proxy or sending requests to other services with useful utilities

102.2k](/packages/behamin-service-proxy)

PHPackages © 2026

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