PHPackages                             xiaoyun/tp-tencent-im - 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. xiaoyun/tp-tencent-im

ActiveThink-extend

xiaoyun/tp-tencent-im
=====================

The ThinkPHP5 Tencent IM Service Package.

v1.2.0(7y ago)2332MITPHP

Since Apr 25Pushed 7y agoCompare

[ Source](https://github.com/xiaoyunTeam/tp-tencent-im)[ Packagist](https://packagist.org/packages/xiaoyun/tp-tencent-im)[ RSS](/packages/xiaoyun-tp-tencent-im/feed)WikiDiscussions 1.0.4 Synced today

READMEChangelog (1)Dependencies (1)Versions (8)Used By (0)

xiaoyun/tp-tencent-im
---------------------

[](#xiaoyuntp-tencent-im)

### 使用方法

[](#使用方法)

基于腾讯云IM

##### 云通信（Instant Messaging）承载亿级 QQ 用户即时通信技术，数十年技术积累，腾讯云为您提供超乎寻常即时通信聊天服务。针对开发者的不同阶段需求及不同场景，云通信提供了一系列解决方案，包括： Android/iOS/Windows/Web 的 SDK 组件、服务端集成接口、第三方回调接口等，利用这些组件，可以在应用中构建自己的即时通信产品，解决开发者面临的高并发、高可用性的一系列问题。

[](#云通信instant-messaging承载亿级-qq-用户即时通信技术数十年技术积累腾讯云为您提供超乎寻常即时通信聊天服务针对开发者的不同阶段需求及不同场景云通信提供了一系列解决方案包括-androidioswindowsweb-的-sdk-组件服务端集成接口第三方回调接口等利用这些组件可以在应用中构建自己的即时通信产品解决开发者面临的高并发高可用性的一系列问题)

[腾讯云IM传送门](https://cloud.tencent.com/document/product/269)

#### 1、安装扩展

[](#1安装扩展)

```
composer require xiaoyun/tp-tencent-im

```

#### 2、配置文件

[](#2配置文件)

- 5.0安装好扩展后在 application\\extra\\ 文件夹下会生成 im.php 配置文件
- 5.1安装好扩展后在 application\\config\\ 文件夹下会生成 im.php 配置文件
- 在im.php中配置

```
    return [
        'SDKAppid' => '',  // 填入创建腾讯云通讯应用获取到的 sdkappid
        'accountType' => '', // 填入在帐号体系集成配置中获取到的 accountType 前端使用
        'private_key' => '', // 设置私钥 如果要生成usersig则需要私钥
        'public_key' => '', // 设置公钥 如果要验证usersig则需要公钥
    ];

```

#### 3、默认过期时间

[](#3默认过期时间)

```
   use XiaoYun\Tentcent\IM;

   $user = 'xiaoyun01';
   $sign = IM::genSign($user);
   var_export($sign);

```

#### 4、指定过期时间

[](#4指定过期时间)

```
   use XiaoYun\Tentcent\IM;

   $user = 'xiaoyun02';
   $sign = IM::genSignWithUserbuf($user);
   var_export($sign);

```

### 更多支持 xiaoyun.studio

[](#更多支持-xiaoyunstudio)

#### 2019年4月20日 v1.0.0

[](#2019年4月20日-v100)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

8

Last Release

2569d ago

### Community

Maintainers

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

---

Top Contributors

[![z0shx](https://avatars.githubusercontent.com/u/171113489?v=4)](https://github.com/z0shx "z0shx (1 commits)")

### Embed Badge

![Health badge](/badges/xiaoyun-tp-tencent-im/health.svg)

```
[![Health](https://phpackages.com/badges/xiaoyun-tp-tencent-im/health.svg)](https://phpackages.com/packages/xiaoyun-tp-tencent-im)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)

PHPackages © 2026

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