PHPackages                             hxc/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. hxc/im

ActiveLibrary[API Development](/categories/api)

hxc/im
======

TP5+腾讯云通信服务端api

v2.0.2(5y ago)34461MITPHPCI failing

Since Sep 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/developer-hxc/IM-Tencent)[ Packagist](https://packagist.org/packages/hxc/im)[ RSS](/packages/hxc-im/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (15)Used By (0)

腾讯云通信+ThinkPHP5.0
=================

[](#腾讯云通信thinkphp50)

安装方法
----

[](#安装方法)

`composer require hxc/im`

使用方法
----

[](#使用方法)

1. 在`application/config.php`中增加配置信息：

    ```
    'im' => [
      'appid'  => '云通信appid',
      'admin'  => '帐号管理员用户名',
      'secret'   => '云通信密钥',
      'domain' => 'https://console.tim.qq.com',//请求的域名，无特殊情况不用修改
      'fun_arr' => [
        //格式举例：
        //'account_import'           => '/v4/im_open_login_svc/account_import',//单个帐号导入
      ],//请求接口数组，如果遇到报错为：暂未封装此方法，可根据文档自己封装。（文档：https://cloud.tencent.com/document/product/269/1519），可在此处添加
    ],
    ```
2. 调用

    ```
    //获取配置
    $config = Config::get('im');
    //账号导入
    $res = json_decode(IM::TX($config)->fun('account_import', [
      "Identifier" => '用户名，长度不超过32字节',
      "Nick" => '用户昵称',
      "FaceUrl" => '用户头像 URL'
    ])->post(), true);
    if ($res['ActionStatus'] !== 'OK' || $res['ErrorCode'] !== 0) {
      $this->returnFail('登录失败:通讯连接失败');
    }

    //生成签名
    IM::TX($config)->user($data['account'])->genSig();
    ```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~82 days

Recently: every ~245 days

Total

13

Last Release

1841d ago

Major Versions

v1.0.9 → v2.0.02020-01-08

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20559872?v=4)[韩显成](/maintainers/developer-hxc)[@developer-hxc](https://github.com/developer-hxc)

---

Top Contributors

[![developer-hxc](https://avatars.githubusercontent.com/u/20559872?v=4)](https://github.com/developer-hxc "developer-hxc (6 commits)")[![hxc19920501](https://avatars.githubusercontent.com/u/20341302?v=4)](https://github.com/hxc19920501 "hxc19920501 (1 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/hxc-im/health.svg)](https://phpackages.com/packages/hxc-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.1k33](/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)
