PHPackages                             lsshu/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. [Queues &amp; Workers](/categories/queues)
4. /
5. lsshu/wechat

ActiveLibrary[Queues &amp; Workers](/categories/queues)

lsshu/wechat
============

api

v1.0.1(6y ago)0582MITPHPPHP &gt;=7.0.0

Since Aug 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/lsshu/wechat)[ Packagist](https://packagist.org/packages/lsshu/wechat)[ Docs](https://github.com/lsshu/wechat)[ RSS](/packages/lsshu-wechat/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (3)Used By (2)

 wechat
========

[](#-wechat-)

 api.

Installing
----------

[](#installing)

```
$ composer require lsshu/wechat
```

Usage ACCOUNT
-------------

[](#usage-account)

---

#### 实例化ACCOUNT

[](#实例化account)

```
$config = ['appId'=>'','appSecret'=>''] ;
$account = Lsshu\Wechat\Service::account($config);
```

Usage MESSAGE
-------------

[](#usage-message)

---

#### 实例化MESSAGE

[](#实例化message)

```
$config = ['appId'=>'','token'=>'','encodingAesKey'=>''] ;
$message = Lsshu\Wechat\Service::message($config);
```

Usage PROGRAM
-------------

[](#usage-program)

---

#### 实例化PROGRAM

[](#实例化program)

```
$config = ['appId'=>'','appSecret'=>''] ;
$program = Lsshu\Wechat\Service::program($config);
```

#### 登录凭证校验 code2Session

[](#登录凭证校验-code2session)

```
$res = $program->code2Session($code);
```

#### 二维码 createWXAQRCode

[](#二维码-createwxaqrcode)

```
$res = $program->createWXAQRCode($path, $width);
```

#### 二维码 getWXACode

[](#二维码-getwxacode)

```
$res = $program->getWXACode($path, $width, $auto_color, $line_color, $is_hyaline);
```

#### 二维码 getWXACodeUnlimit

[](#二维码-getwxacodeunlimit)

```
$res = $program->getWXACodeUnlimit($scene, $page, $width, $auto_color, $line_color, $is_hyaline);
```

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

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/lsshu/wechat/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/lsshu/wechat/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

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

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.

###  Release Activity

Cadence

Every ~82 days

Total

2

Last Release

2368d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d845e94ab10817ebe026ff86cbb997ad2220789fba01ee11a041f5759976368?d=identicon)[lsshu](/maintainers/lsshu)

---

Top Contributors

[![lsshu](https://avatars.githubusercontent.com/u/31087430?v=4)](https://github.com/lsshu "lsshu (3 commits)")

---

Tags

messagelaravelwechataccountprogramWXlsshu

### Embed Badge

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

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

###  Alternatives

[baklysystems/laravel-chat-messenger

Laravel chat package

121.8k](/packages/baklysystems-laravel-chat-messenger)

PHPackages © 2026

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