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

ActiveLibrary[API Development](/categories/api)

pithyone/think-wechat
=====================

企业微信SDK for ThinkPHP5

2.0.0(7y ago)497189[2 issues](https://github.com/pithyone/think-wechat/issues)MITPHP

Since Jul 30Pushed 5y ago3 watchersCompare

[ Source](https://github.com/pithyone/think-wechat)[ Packagist](https://packagist.org/packages/pithyone/think-wechat)[ RSS](/packages/pithyone-think-wechat/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/684f78268e1841ee2bb6d67be7034de17e8b49b3d43d5191433728702f30b3ee/68747470733a2f2f706f7365722e707567782e6f72672f70697468796f6e652f7468696e6b2d7765636861742f762f737461626c65)](https://packagist.org/packages/pithyone/think-wechat)[![Latest Unstable Version](https://camo.githubusercontent.com/00227fd12609f6df7453e1e719d1d1b1d3aaa48ca3eeb2933a4758724f9c64f5/68747470733a2f2f706f7365722e707567782e6f72672f70697468796f6e652f7468696e6b2d7765636861742f762f756e737461626c65)](https://packagist.org/packages/pithyone/think-wechat)[![License](https://camo.githubusercontent.com/58c35bd011a5fc1668c8b3dca8c131f539d6e046ba0af2d3234cc627f7a36dc6/68747470733a2f2f706f7365722e707567782e6f72672f70697468796f6e652f7468696e6b2d7765636861742f6c6963656e7365)](https://packagist.org/packages/pithyone/think-wechat)

think-wechat
============

[](#think-wechat)

企业微信SDK for ThinkPHP5，基于 [pithyone/wechat](https://github.com/pithyone/wechat)

> 理论上支持 ThinkPHP 5.1.x 所有版本

安装
--

[](#安装)

```
composer require pithyone/think-wechat
```

配置
--

[](#配置)

1. 创建配置文件

将 `vendor/pithyone/think-wechat/src/config.php` 拷贝至应用配置目录，然后重命名为 `wework.php`

2. 在 `provider.php` 绑定类库

```
return [
    // ...
    'wework' => \think\WeWork::class,
];
```

用法
--

[](#用法)

以获取 access\_token 为例：

```
app('wework')->get('token')->get();
```

使用其他应用时，改变默认设置即可，假设有一个测试应用为 `test`

```
app('wework', ['test'], true)->get('token')->get();
```

更多用法请参考：

License
-------

[](#license)

[MIT](https://github.com/pithyone/think-wechat/blob/master/LICENSE)

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Total

5

Last Release

2852d ago

Major Versions

1.1.1 → 2.0.02018-09-08

### Community

Maintainers

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

---

Top Contributors

[![pithyone](https://avatars.githubusercontent.com/u/8215934?v=4)](https://github.com/pithyone "pithyone (12 commits)")

---

Tags

sdkthinkphpwechat

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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