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

ActiveLibrary[API Development](/categories/api)

nizerin/yun-xin-helper
======================

 网易云信 IM SDK fro PHP , IM ,聊天室，直播间

1.0.10(3y ago)17994MITPHP ^7.0.0

Since Jun 20Compare

[ Source](https://github.com/NiZerin/yun-xin-helper)[ Packagist](https://packagist.org/packages/nizerin/yun-xin-helper)[ RSS](/packages/nizerin-yun-xin-helper/feed)WikiDiscussions Synced 2d ago

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

[![https://yunxin.163.com/res/image/base/logo/logo-black@2x.png?v=5](https://camo.githubusercontent.com/97faf07ddef72bd8d93656e24dfbb10417590870aff703625346ef4f5b3199ac/68747470733a2f2f79756e78696e2e3136332e636f6d2f7265732f696d6167652f626173652f6c6f676f2f6c6f676f2d626c61636b4032782e706e673f763d35)](https://camo.githubusercontent.com/97faf07ddef72bd8d93656e24dfbb10417590870aff703625346ef4f5b3199ac/68747470733a2f2f79756e78696e2e3136332e636f6d2f7265732f696d6167652f626173652f6c6f676f2f6c6f676f2d626c61636b4032782e706e673f763d35)

[![PHP from Packagist](https://camo.githubusercontent.com/f6c3d889d7429846350aacdcf2d1fe0bf957b20b599e02b0bd9991790e2dd95b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6e697a6572696e2f79756e2d78696e2d68656c7065722e737667)](https://camo.githubusercontent.com/f6c3d889d7429846350aacdcf2d1fe0bf957b20b599e02b0bd9991790e2dd95b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6e697a6572696e2f79756e2d78696e2d68656c7065722e737667) [![](https://camo.githubusercontent.com/d6c8f3e7420d57d14f495eb75dbaf059d89e5275009774c60d138621d35c398f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e697a6572696e2f79756e2d78696e2d68656c7065722e737667)](https://camo.githubusercontent.com/d6c8f3e7420d57d14f495eb75dbaf059d89e5275009774c60d138621d35c398f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e697a6572696e2f79756e2d78696e2d68656c7065722e737667) [![](https://camo.githubusercontent.com/0c7f87c20bfe4d5f66aabbf0298f279eb5794b58e1ccf41bf90423d9801f0027/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e697a6572696e2f79756e2d78696e2d68656c7065722e737667)](https://camo.githubusercontent.com/0c7f87c20bfe4d5f66aabbf0298f279eb5794b58e1ccf41bf90423d9801f0027/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e697a6572696e2f79756e2d78696e2d68656c7065722e737667) [![Packagist](https://camo.githubusercontent.com/fa2ae7dfee54257843b0eddbba7f3394f5b1df768c4a5ab1173a84ad280448c9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e697a6572696e2f79756e2d78696e2d68656c7065722e737667)](https://camo.githubusercontent.com/fa2ae7dfee54257843b0eddbba7f3394f5b1df768c4a5ab1173a84ad280448c9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e697a6572696e2f79756e2d78696e2d68656c7065722e737667)

安装
==

[](#安装)

推荐使用 Composer：`composer require nizerin/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);
```

### 更多功能请查看 SRC

[](#更多功能请查看-src)

因为实在没时间写文档，后面我会逐渐完善，各位见谅

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity61

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

Recently: every ~292 days

Total

11

Last Release

1395d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/573fcf255345bc64772d2c61b862bd91ff59089560d78094eb218a4df1d72e35?d=identicon)[nizerin](/maintainers/nizerin)

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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