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

ActiveLibrary[API Development](/categories/api)

ikaijian/wechat
===============

微信 SDK 包含企业微信、微信小程序、微信公众号、微信开放平台、微信支付等微信集合接口

v1.1.0(1y ago)13MITPHPPHP ^7.4|^8.0

Since Dec 6Pushed 1y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

 wetchat
=========

[](#-wetchat-)

 .

概览
--

[](#概览)

微信平台开放接口封装SDK,包含企业微信、微信公众平台、微信开放平台、微信小程序等

目录
--

[](#目录)

- [环境要求](#%E7%8E%AF%E5%A2%83%E8%A6%81%E6%B1%82)
- [安装](#%E5%AE%89%E8%A3%85)
- [微信小程序](docs/miniprogram/01-initialize.md)
    - [初始化](docs/miniprogram/01-initialize.md)
    - [获取access\_token](docs/miniprogram/02-access-token.md)
    - [登录](docs/miniprogram/03-login.md)
    - [获取手机](docs/miniprogram/04-phonenumber.md)
    - [小程序QR](docs/miniprogram/05-appcode.md)
    - [订阅消息](docs/miniprogram/06-subscribe-message.md)
    - [小程序链接](docs/miniprogram/07-applink.md)
- [微信公众号](docs/offiaaccount/01-initialize.md)
    - [初始化](docs/offiaaccount/01-initialize.md)
    - [获取access\_token](docs/offiaaccount/02-access-token.md)
    - [JS-SDK](docs/offiaaccount/03-jssdk.md)
- [企业微信](docs/work/01-initialize.md)
    - [初始化](docs/work/01-initialize.md)
    - [获取access\_token](docs/work/02-access-token.md)
    - [网页授权](docs/work/03-oauth.md)
    - [OA](docs/work/08-oa.md)
    - [通讯录](docs/work/04-contacts.md)
    - [部门管理](docs/work/09-department.md)
    - [标签管理](docs/work/10-tag.md)
    - [JS-SDK](docs/work/05-jssdk.md)
    - [消息发送](docs/work/06-message.md)
    - [群机器人](docs/work/07-group-robot.md)

环境要求
----

[](#环境要求)

- PHP &gt;= 7.4

安装
--

[](#安装)

```
$ composer require ikaijian/wetchat -vvv
```

使用
--

[](#使用)

缓存 Token 直接使用了Laravel Cache 的 Facades，建议将 CACHE\_DRIVER=file 改为 CACHE\_DRIVER=redis

### 发布配置

[](#发布配置)

- easywechat\_config基础配置文件

```
php artisan vendor:publish --provider="Ikaijian\Wechat\WechatServiceProvider"
```

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/ikaijian/wetchat/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/ikaijian/wetchat/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance40

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

523d ago

### Community

Maintainers

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

---

Tags

sdkminiprogramworkOffiaAccount

### Embed Badge

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

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[crowdin/crowdin-api-client

PHP client library for Crowdin API v2

611.5M5](/packages/crowdin-crowdin-api-client)[yoti/yoti-php-sdk

Yoti SDK for quickly integrating your PHP backend with Yoti

27539.9k1](/packages/yoti-yoti-php-sdk)

PHPackages © 2026

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