2017 © Pedro Peláez
 

library hipchat-php

PHP library for HipChat

image

hipchat/hipchat-php

PHP library for HipChat

  • Wednesday, April 29, 2015
  • by hipchat
  • Repository
  • 31 Watchers
  • 176 Stars
  • 697,355 Installations
  • PHP
  • 25 Dependents
  • 7 Suggesters
  • 60 Forks
  • 5 Open issues
  • 6 Versions
  • 3 % Grown

The README.md

hipchat-php

A PHP library for interacting with the HipChat REST API., (*1)

Composer Installation

HipChat-PHP can be installed with Composer (http://getcomposer.org/). Add the following to your composer.json file. Composer will handle the autoloading., (*2)

{
    "require": {
        "hipchat/hipchat-php": ">=1.0.0"
    }
}

Usage

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

// list rooms
foreach ($hc->get_rooms() as $room) {
  echo " - $room->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!');

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., (*3)

./example.php <your api token>

To test the library itself, run the PHPUnit tests:, (*4)

phpunit tests/

The Versions

29/04 2015

dev-master

9999999-dev http://github.com/hipchat/hipchat-php

PHP library for HipChat

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

hipchat

29/04 2015

v1.4

1.4.0.0 http://github.com/hipchat/hipchat-php

PHP library for HipChat

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

hipchat

02/06 2014

v1.3

1.3.0.0 http://github.com/hipchat/hipchat-php

PHP library for HipChat

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

hipchat

30/11 2012

v1.2

1.2.0.0 http://github.com/hipchat/hipchat-php

PHP library for HipChat

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

hipchat

02/10 2012

v1.1

1.1.0.0 http://github.com/hipchat/hipchat-php

PHP library for HipChat

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

hipchat

01/10 2012

v1.0

1.0.0.0 http://github.com/hipchat/hipchat-php

PHP library for HipChat

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

hipchat