PHPackages                             luoyy/tim - 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. luoyy/tim

ActiveLibrary

luoyy/tim
=========

Tencent Cloud IM

v3.4.3(3y ago)12.6k2PHPPHP &gt;=7.2.0

Since Jan 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/zishang520/tim)[ Packagist](https://packagist.org/packages/luoyy/tim)[ RSS](/packages/luoyy-tim/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (6)Dependencies (2)Versions (40)Used By (0)

腾讯 即时通信 IM(TIM)
===============

[](#腾讯-即时通信-imtim)

### 安装包

[](#安装包)

```
composer require luoyy/tim
```

###### 在 app.php 中注册服务器提供者(Laravel5.5+支持自动发现)

[](#在-appphp-中注册服务器提供者laravel55支持自动发现)

```
luoyy\Tim\Providers\TimServiceProvider
```

###### ENV

[](#env)

```
#Tim配置
# App 在即时通信 IM 控制台获取的应用标识
TIM_SDK_APPID=
# 用户名，调用 REST API 时必须为 App 管理员帐号
TIM_IDENTIFIER=
# 生成 UserSig 的组件库版本 默认 v2 对称加密，如果要使用非对称加密请使用v1
TIM_TLS=v2
# v2 对称加密使用的谜语
TIM_SECRET_KEY=
# v1 非对称加密使用的公钥，只需要中间部分，且去除换行
TIM_PUBLIC_KEY=
# v1 非对称加密使用的私钥，只需要中间部分，且去除换行
TIM_PRIVATE_KEY=
```

### Quick Sample Usage

[](#quick-sample-usage)

```
/**
 * TIM DEMO
 */
use luoyy\Tim\Facades\Tim;

var_dump(Tim::portrait_get(['test'], [Tag::TAG_PROFILE_IM_NICK]));
var_dump(Tim::errCode());
var_dump(Tim::errMsg());
```

### 更新日志

[](#更新日志)

- `2020.12.23`：新增一些API接口，具体请查看commit
- `2020.07.31`：更新版本到3.0，完善一些注释内容，添加全员推送 all\_member\_push 相关接口，2.0升级请注意querystate接口参数已修改，具体请查看commit
- `2021.11.05`：更新版本到3.2，完善一些注释内容，添加查询帐号在线状态 query\_online\_status 接口(旧的接口弃用，请注意)，添加 最近联系人 相关API，具体请查看commit
- `2022.05.20`：更新版本到3.4，完善一些注释内容，修复一些API接口参数问题，添加新的API，具体请查看commit

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

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

Recently: every ~15 days

Total

39

Last Release

1389d ago

Major Versions

v1.7 → v2.0.02020-03-19

v2.1.6 → v3.0.02020-07-31

PHP version history (3 changes)v1.0PHP &gt;=5.6.0

v2.1.0PHP &gt;=7.0.0

v3.3.0PHP &gt;=7.2.0

### Community

Maintainers

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

---

Top Contributors

[![zishang520](https://avatars.githubusercontent.com/u/10894778?v=4)](https://github.com/zishang520 "zishang520 (57 commits)")

---

Tags

laravel-timqcloud-timtimlaravellumentim

### Embed Badge

![Health badge](/badges/luoyy-tim/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/vapor-cli

The Laravel Vapor CLI

31310.7M8](/packages/laravel-vapor-cli)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[flat3/lodata

OData v4.01 Producer for Laravel

96320.9k](/packages/flat3-lodata)

PHPackages © 2026

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