PHPackages                             highras/rtm - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. highras/rtm

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

highras/rtm
===========

php-sdk for RTM

1.0.19(2y ago)31.6kproprietaryPHPPHP &gt;=5.4.0

Since Nov 18Pushed 2y ago3 watchersCompare

[ Source](https://github.com/highras/rtm-server-sdk-php)[ Packagist](https://packagist.org/packages/highras/rtm)[ Docs](https://github.com/highras/rtm-server-sdk-php)[ RSS](/packages/highras-rtm/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (15)Used By (0)

rtm-server-sdk-php
==================

[](#rtm-server-sdk-php)

Requirements
------------

[](#requirements)

- PHP &gt;= 5.4
- ext-mcrypt
- ext-gmp
- ext-msgpack

Installations
-------------

[](#installations)

The preferred way to install this sdk is through [composer](http://getcomposer.org/download/).

> Note: Check the [composer.json](https://github.com/highras/rtm-server-sdk-php/blob/master/composer.json) for this SDK's requirements and dependencies. Read this [web tip /wiki](http://webtips.krajee.com/setting-composer-minimum-stability-application/) on setting the `minimum-stability` settings for your application's composer.json.

Either run

```
$ php composer.phar require highras/rtm $LATEST_VERSION

```

or add

```
"highras/rtm": $LATEST_VERSION

```

to the `require` section of your `composer.json` file.

Notice
------

[](#notice)

- Before using the SDK, please make sure the server time is correct, RTM-Server will check whether the signature time has expired

API
---

[](#api)

- `__construct($pid, $secretKey, $endpoint, $timeout = 5000, $autoReconnect = true)`: RTMServerClient Construct

    - `pid`: **(int)** Project ID
    - `secretKey`: **(string)** Secret key
    - `endpoint`: **(string)** Server endpoint
    - `timeout`: **(int)** connection timeout(ms)
    - `autoReconnect`: **(bool)** support auto reconnect
- `enableEncryptor($peerPubData)`: Enable encrypted connection

    - `peerPubData`: **(string)** Certificate content
- `enableEncryptorByFile($file)`: Enable encrypted connection

    - `file`: **(string)** Certificate file path

### Token Functions

[](#token-functions)

Please refer [Token Functions](doc/Token.md)

### User Functions

[](#user-functions)

Please refer [User Functions](doc/User.md)

### Room Functions

[](#room-functions)

Please refer [Room Functions](doc/Room.md)

### Group Functions

[](#group-functions)

Please refer [Group Functions](doc/Group.md)

### Friend Functions

[](#friend-functions)

Please refer [Friend Functions](doc/Friend.md)

### Message Functions

[](#message-functions)

Please refer [Message Functions](doc/Message.md)

### Chat Functions

[](#chat-functions)

Please refer [Chat Functions](doc/Chat.md)

### File Functions

[](#file-functions)

Please refer [File Functions](doc/File.md)

### Device Functions

[](#device-functions)

Please refer [Device Functions](doc/Device.md)

### Data Functions

[](#data-functions)

Please refer [Data Functions](doc/Data.md)

### RTC Functions

[](#rtc-functions)

Please refer [RTC Functions](doc/Rtc.md)

### Error Codes

[](#error-codes)

Please refer [RTM Error Codes](https://github.com/highras/rtm-server-sdk-php/blob/master/src/RTMErrorCode.php)

Please refer [FPNN Error Codes](https://github.com/highras/fpnn-sdk-php/blob/master/src/ErrorCode.php)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.2% 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 ~80 days

Recently: every ~31 days

Total

14

Last Release

966d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a56b8848c43ece10a8bcee860184c4d97dfcaf1f68d451469b7372f28122a46?d=identicon)[livedata](/maintainers/livedata)

---

Top Contributors

[![junstor](https://avatars.githubusercontent.com/u/971800?v=4)](https://github.com/junstor "junstor (49 commits)")[![jianjunzhao-github](https://avatars.githubusercontent.com/u/37098112?v=4)](https://github.com/jianjunzhao-github "jianjunzhao-github (19 commits)")[![xiaoxiangdu](https://avatars.githubusercontent.com/u/9672899?v=4)](https://github.com/xiaoxiangdu "xiaoxiangdu (5 commits)")[![mztest](https://avatars.githubusercontent.com/u/323810?v=4)](https://github.com/mztest "mztest (1 commits)")

---

Tags

rtm

### Embed Badge

![Health badge](/badges/highras-rtm/health.svg)

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

###  Alternatives

[web3p/ethereum-util

A collection of utility functions for Ethereum written in PHP.

30420.2k26](/packages/web3p-ethereum-util)[swentel/nostr-php

Nostr helper library for PHP

6725.9k3](/packages/swentel-nostr-php)[digitaldonkey/ecverify

A library integrating Ethereum with typed PHP.

14109.2k2](/packages/digitaldonkey-ecverify)

PHPackages © 2026

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