PHPackages                             zzx/wechat\_user - 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. zzx/wechat\_user

ActiveLibrary

zzx/wechat\_user
================

user

v1.1.1(7y ago)017MITPHPPHP &gt;=5.3

Since Feb 19Pushed 7y agoCompare

[ Source](https://github.com/13302516724/wechat_user)[ Packagist](https://packagist.org/packages/zzx/wechat_user)[ RSS](/packages/zzx-wechat-user/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (5)Used By (0)

wechat\_user
============

[](#wechat_user)

微信公共平台接口操作
\#使用方法

use Zzx\\user\\wechat\\WxMethod;

```
public function __construct($config = null)
    {
        parent::__construct();
        $config['appid'] = '你的appid';
        $config['appsecret'] = '你的appsecret';
        $this->WxMethod = new WxMethod($config['appid'],$config['appsecret']);
        $this->config = $config;
    }

```

获取access\_token
===============

[](#获取access_token)

```
    public function getAccessToken()
    {
        $this->WxMethod->getAccessToken();
    }

```

目前已整理的微信第三方类
============

[](#目前已整理的微信第三方类)

1. getUserList();获取微信公共号用户列表
2. getUserInfo('openid');获取某一用户的详细信息，参数一为用户的openid。
3. sendMsgToOne('openid','type','content');先某一用户发送消息，参数一为用户的openid，参数二为用户的消息类型，参数三为发送内容。
4. getAllTemplateMsg();获取公共号消息模板。
5. sendTemplateMsg();向指定用户发送模板消息，参数一为用户的openid，参数二为消息模板 id，参数三为需要跳转的url，参数四为发送的数据（array）。
6. getSignPackage();获取微信JS-SDK的config权限配置信息。

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Total

4

Last Release

2636d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/789c9d6bd7972f10fd8e5d711c7ea02107956162442cbd4de70d1e8f86e79c31?d=identicon)[13302516724](/maintainers/13302516724)

---

Top Contributors

[![13302516724](https://avatars.githubusercontent.com/u/20874636?v=4)](https://github.com/13302516724 "13302516724 (10 commits)")

### Embed Badge

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

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

PHPackages © 2026

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