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

ActiveLibrary

luojia/wechat-sdk
=================

An easy-use sdk for wechat developing, following the official documentation.

564PHP

Since Feb 19Pushed 9y ago1 watchersCompare

[ Source](https://github.com/summer1914/wechat-sdk-packByComposer)[ Packagist](https://packagist.org/packages/luojia/wechat-sdk)[ RSS](/packages/luojia-wechat-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

wechat-sdk-packByComposer
=========================

[](#wechat-sdk-packbycomposer)

> Wechat SDK (not production ready).

Install
-------

[](#install)

```
composer require luojia/wechat-sdk
```

Quick Start
-----------

[](#quick-start)

```
use Wechat\Wechat;

$options = array(
	'token'=>'tokenaccesskey', //key
	'encodingaeskey'=>'encodingaeskey', //EncodingAESKey
	'appid'=>'wxdk1234567890', //app id
	'appsecret'=>'xxxxxxxxxxxxxxxxxxx' //填写高级调用功能的密钥
);

$testObj = new Wechat($options);
$testObj->valid();
$type = $testObj->getRev()->getRevType();
switch($type) {
	case Wechat::MSGTYPE_TEXT:
	$testObj->text("hello, I'm wechat")->reply();
	exit;
	break;
	case Wechat::MSGTYPE_EVENT:
	/** code **/
	break;
	case Wechat::MSGTYPE_IMAGE:
	/** code **/
	break;
	default:
	$testObj->text("help info")->reply();
}
```

License
-------

[](#license)

MIT

> 函数可基本按照官方文档的规律调用。详细中文文档近期将补上

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

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/ee9877f47568a0c5561c92e22869175df79465439a6c9eb74ce57ee73d5309c1?d=identicon)[summer1914](/maintainers/summer1914)

---

Top Contributors

[![summer1914](https://avatars.githubusercontent.com/u/13167083?v=4)](https://github.com/summer1914 "summer1914 (64 commits)")

### Embed Badge

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

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

PHPackages © 2026

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