Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A PHP library for interacting with the HipChat REST API.
branch: master

This branch is 49 commits behind hipchat:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tests
HipChat.php
LICENSE
README.md
example.php

README.md

hipchat-php

A PHP library for interacting with the HipChat REST API.

Testing

You can test this library (and your API key) using the example.php script as follows. It should print a list of your rooms and users.

./example.php <your api token>

To test the library itself, run the PHPUnit tests:

phpunit tests/

Usage

require 'HipChat.php';

$token = '<your api token>';
$hc = new HipChat($token);

// list rooms
foreach ($hc->get_rooms() as $room) {
  echo " - $room->id = $room->name\n";
}

// send a message to the 'Development' room from 'API'
$hc->message_room('Development', 'API', 'This is just a test message!');
Something went wrong with that request. Please try again.