Zae\HipChat
HipChat API Client, (*1)
This class provides easy access to v1 of the HipChat API:
https://www.hipchat.com/docs/api/, (*2)
Install
Installation via composer is very easy, simply add the package to your composer.json:, (*3)
"require": {
"zae/hipchat": "*"
}
Or download the code and add the namespace to your autoloader or simply require() the files., (*4)
Usage
Normal:, (*5)
<?php
$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'
]);
Laravel 4 Facade:, (*6)
<?php
HipChat::sendMessage([
'auth_token' => 'XXXXXXXXXXX',
'room_id' => XXXX,
'from' => 'Zae\HipChat',
'notify' => 1,
'message' => "This is an example message",
'message_format' => 'text'
]);
About
License
This project has an MIT license. See the LICENSE file for details., (*7)
Guzzle 4
The project uses guzzle 4's service descriptions to create an API Client., (*8)
Laravel
The project has easy L4 integration using it's ServiceProvider and Facade., (*9)
add the ServiceProvider to your list of providers in the config/app file:, (*10)
'providers' => array(
'Zae\HipChat\HipChatServiceProvider'
)
and the Facade to the list of aliases in the config/app file:, (*11)
'aliases' => array(
'HipChat'v=> 'Zae\HipChat\Facades\HipChat'
)
Author
Ezra Pool ezra@tsdme.nl, (*12)
TODO
- Provide tests
- Better auth technique?
- APIv2