2017 © Pedro Peláez
 

library hipchat

PHP library for HipChat APi v2

image

dustler/hipchat

PHP library for HipChat APi v2

  • Tuesday, June 9, 2015
  • by cnam
  • Repository
  • 3 Watchers
  • 4 Stars
  • 37 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

HipChat api for PHP

A PHP library for interacting with the HipChat REST API v2., (*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": {
        "dustler/hipchat": "1.*"
    }
}

Usage

include "vendor/autoload.php";

use HipChat\Api;

$token = 'YourTokenKey';
$client = new HipChat\Http\Curl($token, HipChat\Api::DEFAULT_TARGET, 'v2');
$hc = new HipChat\Api($client);

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

var_dump($hc->getRoomRepo()->testToken('My room'));

$hc->getRoomRepo()->messageRoom('My room', 'Hello from sdk');

foreach ($hc->getUserRepo()->getUsers() as $user) {
    echo "$user->id = $user->name".PHP_EOL;
}

$hc->getUserRepo()->messageUser('SomeUser', 'Hello from sdk');

$hc->getRoomRepo()->getRoomHistory('My room');

The Versions

09/06 2015

dev-master

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

PHP library for HipChat APi v2

  Sources   Download

GPL 2

The Requires

 

The Development Requires

by Anton Popov

hipchat

09/06 2015

1.0.3.1

1.0.3.1 http://github.com/dustler/hipchat

PHP library for HipChat APi v2

  Sources   Download

GPL 2

The Requires

 

The Development Requires

by Anton Popov

hipchat

09/06 2015

1.0.3

1.0.3.0 http://github.com/dustler/hipchat

PHP library for HipChat APi v2

  Sources   Download

GPL 2

The Requires

 

The Development Requires

by Anton Popov

hipchat

11/07 2014

1.0.2

1.0.2.0 http://github.com/dustler/hipchat

PHP library for HipChat APi v2

  Sources   Download

GPL 2

The Requires

 

The Development Requires

by Anton Popov

hipchat

16/05 2014

1.0.1

1.0.1.0 http://github.com/dustler/hipchat

PHP library for HipChat APi v2

  Sources   Download

GPL 2

The Requires

 

The Development Requires

by Anton Popov

hipchat

16/05 2014

1.0.0

1.0.0.0 http://github.com/dustler/hipchat

PHP library for HipChat APi v2

  Sources   Download

GPL 2

The Requires

 

The Development Requires

by Anton Popov

hipchat

16/05 2014

0.0.1

0.0.1.0 http://github.com/dustler/hipchat

PHP library for HipChat APi v2

  Sources   Download

GPL 2

The Requires

 

The Development Requires

by Anton Popov

hipchat