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

ActiveLibrary[API Development](/categories/api)

chison/wechat
=============

微信公众号API.

221PHP

Since May 3Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Chison/Wechat)[ Packagist](https://packagist.org/packages/chison/wechat)[ RSS](/packages/chison-wechat/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Chison/Wechat
=============

[](#chisonwechat)

[![Total Downloads](https://camo.githubusercontent.com/0d805ff1e85e5885804e3e122c6b32411b7139c8a1393436820eb7cc074c9dde/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2f6672616d65776f726b2f646f776e6c6f6164732e737667)](https://packagist.org/packages/chison/wechat)[![License](https://camo.githubusercontent.com/f45d904953153ca304a2328243d2733e095eee13a631a1f390709885d41dd692/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2f6672616d65776f726b2f6c6963656e73652e737667)](https://packagist.org/packages/chison/wechat)

> 代码阶段(2017-5-8)：目前处于功能开发中。

> 1、composer.json 文件配置

```
{
    "require": {
        "chison/wechat": "dev-master"
    }
}
```

> 2、进入composer.json目录 安装

```
    composer install
```

使用实例
====

[](#使用实例)

> 1、配置文件 /config/config.php

```
return [
    'appid'     =>  'your appid',
    'appsercet' =>  'your appsercet',
    'token'     =>  'your token',
    'encodeKey' =>  'your encodeKey',
    'publicName'=>  'your publicName'
];
```

> 2、 设置 /public/index.php

```
use \Chison\Wechat\Engine;

Engine::$config = include '../config/config.php';
Engine::$cache = new Predis\Client('tcp://redis.cis:6379?password=your password');
```

> [更多说明](https://github.com/Chison/Wechat/wiki)

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

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

---

Tags

composer-package

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24016.2M18](/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

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

PHPackages © 2026

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