PHPackages                             tencentsdk/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. [API Development](/categories/api)
4. /
5. tencentsdk/im

ActiveLibrary[API Development](/categories/api)

tencentsdk/im
=============

tencent im sdk

v1.0.0(7y ago)274MITPHP

Since Mar 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/runphp/tencent-im-sdk)[ Packagist](https://packagist.org/packages/tencentsdk/im)[ RSS](/packages/tencentsdk-im/feed)WikiDiscussions master Synced 2w ago

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

tencent-im-sdk
==============

[](#tencent-im-sdk)

腾讯云通信 php sdk

安装
--

[](#安装)

```
composer require tencentsdk/im
```

使用
--

[](#使用)

```
use TencentSDK\Im\Client as ImClient;

$options = [
    'appId' => 'your app id',
    'privateKey' => 'your private key path',
    'adminer' => 'admin',  // your admin account
];
$imClient = new ImClient($options['appId'], $options['privateKey'], $options['adminer']);

// 添加好友
$imClient->execute('sns', 'friend_add', [
    'From_Account'  => 'test_from_account',
    'AddFriendItem' => [
        [
            'To_Account' => 'test_to_account',
                'AddSource'  => 'AddSource_Type_test',
        ],
    ],
]);

// 添加群群员
$imClient->execute('group_open_http_svc', 'add_group_member', [
    'GroupId'  => 'group_id',
    'MemberList' => [
        [
            'Member_Account' => 'test_to_account',
        ],
    ],
]);

// 示例仅供参考，以腾讯IM文档为准
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Unknown

Total

1

Last Release

2657d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b47e66f85ea289c0c6d69efd5848c7d667010267e281e60dbfd0c3a4ab9bc99?d=identicon)[runphp](/maintainers/runphp)

---

Top Contributors

[![runphp](https://avatars.githubusercontent.com/u/1510812?v=4)](https://github.com/runphp "runphp (12 commits)")

### Embed Badge

![Health badge](/badges/tencentsdk-im/health.svg)

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

###  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)
