2017 © Pedro Peláez
 

library rtm

php-sdk for RTM

image

highras/rtm

php-sdk for RTM

  • Tuesday, March 20, 2018
  • by mztest
  • Repository
  • 3 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

rtm-server-sdk-php

Requirements

  • PHP >= 5.4, (*1)

  • ext-mcrypt, (*2)

  • ext-gmp, (*3)

  • ext-msgpack, (*4)

Installations

The preferred way to install this sdk is through composer., (*5)

Note: Check the composer.json for this SDK's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json., (*6)

Either run, (*7)

$ php composer.phar require highras/rtm $LATEST_VERSION

or add, (*8)

"highras/rtm": $LATEST_VERSION

to the require section of your composer.json file., (*9)

Notice

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

API

  • __construct($pid, $secretKey, $endpoint, $timeout = 5000, $autoReconnect = true): RTMServerClient Construct, (*10)

    • 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, (*11)

    • peerPubData: (string) Certificate content
  • enableEncryptorByFile($file): Enable encrypted connection, (*12)

    • file: (string) Certificate file path

Token Functions

Please refer Token Functions, (*13)

User Functions

Please refer User Functions, (*14)

Room Functions

Please refer Room Functions, (*15)

Group Functions

Please refer Group Functions, (*16)

Friend Functions

Please refer Friend Functions, (*17)

Message Functions

Please refer Message Functions, (*18)

Chat Functions

Please refer Chat Functions, (*19)

File Functions

Please refer File Functions, (*20)

Device Functions

Please refer Device Functions, (*21)

Data Functions

Please refer Data Functions, (*22)

RTC Functions

Please refer RTC Functions, (*23)

Error Codes

Please refer RTM Error Codes, (*24)

Please refer FPNN Error Codes, (*25)

The Versions

20/03 2018

dev-master

9999999-dev https://bitbucket.org/funplus/infra-fpnn-rtm-server-sdk

php-sdk for RTM

  Sources   Download

proprietary

The Requires

 

by jianjun.zhao

rtm