1. Go to this page and download the library: Download zae/hipchat library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zae / hipchat example snippets
$hipchat = new Zae\HipChat\Client();
$hipchat->sendMessage([
'auth_token' => 'XXXXXXXXXXX',
'room_id' => XXXX,
'from' => 'Zae\HipChat',
'notify' => 1,
'message' => "This is an example message",
'message_format' => 'text'
]);
HipChat::sendMessage([
'auth_token' => 'XXXXXXXXXXX',
'room_id' => XXXX,
'from' => 'Zae\HipChat',
'notify' => 1,
'message' => "This is an example message",
'message_format' => 'text'
]);