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 3d 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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Unknown

Total

1

Last Release

2610d 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

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)
