PHPackages                             salamander/yun-xin-helper - 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. salamander/yun-xin-helper

ActiveLibrary[API Development](/categories/api)

salamander/yun-xin-helper
=========================

php sdk for NetEase YunXin

1.1.1(6y ago)26.6k↓100%2[1 issues](https://github.com/salamander-mh/YunXinHelper/issues)MITPHP

Since Dec 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/salamander-mh/YunXinHelper)[ Packagist](https://packagist.org/packages/salamander/yun-xin-helper)[ RSS](/packages/salamander-yun-xin-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (13)Used By (0)

安装
==

[](#安装)

推荐使用composer：`composer require salamander/yun-xin-helper`

使用
==

[](#使用)

### 创建实例

[](#创建实例)

```
$appKey = '****'; // 网易云信分配的账号
$appSecrt = '****'; // 网易云信分配的密钥
$entrance = new \YunXinHelper\Entrance($appKey, $appSecrt);

```

### 用户

[](#用户)

```
# 创建用户
$entrance->user()->create($accid, $name, $icon);

# 用户基本信息更新
$entrance->user()->update($accid, $token);

# 封禁用户
$entrance->user()->block($accid);

# 解禁用户
$entrance->user()->unblock($accid);

# 更新用户名片
$entrance->user()->updateUserInfo($accid, $name, $icon);

# 批量获取用户名片
$entrance->user()->getUserInfos($accids);

```

### 消息功能

[](#消息功能)

```
# 文本消息
$entrance->chat()->sendTextMsg($accidFrom, $to, $open, $text);

# 图片消息
$entrance->chat()->sendPictureMsg($accidFrom, $to, $open,
        $picName, $picMD5, $picUrl, $picExt, $picWidth, $picHeight, $picSize);

# 批量文本消息
$entrance->chat()->sendTextBatchMsg($accidFrom, $accidsTo, $text);

# 发送自定义系统通知
$entrance->chat()->sendAttachMsg($from, CHAT::CHAT_ONT_TO_ONE, $to, $attach);

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Recently: every ~44 days

Total

12

Last Release

2490d ago

### Community

Maintainers

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

---

Tags

phpsdksdk-php

### Embed Badge

![Health badge](/badges/salamander-yun-xin-helper/health.svg)

```
[![Health](https://phpackages.com/badges/salamander-yun-xin-helper/health.svg)](https://phpackages.com/packages/salamander-yun-xin-helper)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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