Skip to content
Server-side client API library in PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

PHP Client for Hyphenate Services

The PHP Client for Hyphenate Services is for use in server applications on a proxy server, aka, your developer server. Client library serves as a wrapper layer on top of raw REST APIs that allows you to deploy on your server and make APIs requests. See Hyphenate APIs.


This library is open source. We encourage you to contribute to make the code base better! If you encountered any bug or feature suggestion, please submit an issue or email for urgent fixes.


  • Run PHP file on localhost
  1. Download Apache XAMPP download
  2. Place the PHP project folder in Applications/XAMPP/xamppfiles/htdocs/
  3. Update index.php header from Applications/XAMPP/xamppfiles/htdocs/ to point to project folder
header('Location: '.$uri.'/hyphenate-server-client-php/');


  • PHPUnit, unit testing for PHP. Getting Started

  • PHP version update. 5.6 or above is required. Latest version 7.1.

$ brew install homebrew/php/php71



Update Hyphenate app configurations before use the constructor of the class, Hyphenate.


$h=new Hyphenate($options);


Generate keystore

Keystore Generation with public site certificate

REST APIs Documentation


Rate Limiting

By default, requests are sent at the expected rate limits for each web service, typically 30 queries per second for free users.
Each IP address is limited to 30 requests per second. Requests beyond this limit will receive a 429 or 503 error. If you received this error, please reduce the request frequency and try again. Please contact Hyphenate if you need higher request rate.

Install PHP IDE

You can use IntelliJ IDEA, or any PHP IDE you prefer to the run the project.

You can’t perform that action at this time.