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

ActiveLibrary

hxc/im-laravel
==============

Laravel+腾讯云通信服务端api

072PHP

Since Jun 5Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)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

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1bcb8fbaa18a32baca71997f5bdfa6c24621b21248bd32a47d24ce4fcce2c69f?d=identicon)[developer-hxc](/maintainers/developer-hxc)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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