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 support@hyphenate.io for urgent fixes.
- Run PHP file on localhost
- Download Apache XAMPP download
- Place the PHP project folder in
Applications/XAMPP/xamppfiles/htdocs/
- Update
index.php
header fromApplications/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.
$options['org_name']='hyphenatedemo';
$options['app_name']='demo';
$options['client_id']='YXA68E7DkM4uEeaPwTPbScypMA';
$options['client_secret']='YXA63_RZdbtXQB9QZsizSCgMC70_4Rs';
$h=new Hyphenate($options);
Keystore Generation with public site certificate
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 info@hyphenate.io if you need higher request rate.
You can use IntelliJ IDEA, or any PHP IDE you prefer to the run the project.