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

ActiveLibrary[API Development](/categories/api)

handsomegyr/tim
===============

A simple PHP client library for tencent im

03PHP

Since Nov 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/handsomegyr/tim)[ Packagist](https://packagist.org/packages/handsomegyr/tim)[ RSS](/packages/handsomegyr-tim/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#即时通信 IM SDK

[![MIT](https://camo.githubusercontent.com/a4b7a1d8377c4252b62962b12857454a352b488c7f58770dcbcadcffaf57247b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f646f637472696e652f6f726d2e737667)](https://github.com/handsomegyr/tim/blob/master/LICENSE)[![Build Status](https://camo.githubusercontent.com/65c4ab4b4f66a24ba53fbbd425914b6b67a62f3dcbc78fad582c6ffaef9ffa66/68747470733a2f2f7472617669732d63692e6f72672f68616e64736f6d656779722f74696d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/handsomegyr/tim)[![Coverage](https://camo.githubusercontent.com/8e30b4362d71db2ae4208e73b95e5648a6fc36203c46e5e02d66646ec71f0156/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f68616e64736f6d656779722f74696d2f6d61737465722e737667)](https://codecov.io/gh/handsomegyr/tim)[![Packagist](https://camo.githubusercontent.com/fb3f3dc49fb2284ae572c6251899e175fda76b9fcf165018d3f49ad68577bcc0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68616e64736f6d656779722f74696d2e737667)](https://packagist.org/packages/handsomegyr/tim)

Requirement
-----------

[](#requirement)

1. PHP &gt;= 5.5
2. **[Composer](https://getcomposer.org/)**

functions
---------

[](#functions)

- 小程序登录
- 授权信息解密
- 发送模板消息
- 获取小程序二维码
- 设置数据缓存
- 删除数据缓存
- 内容安全检查
- 服务端数据签名

Installation
------------

[](#installation)

```
$ composer require "handsomegyr/tim" -vvv
```

Usage
-----

[](#usage)

基本使用（以服务端为例）:

```
