PHPackages                             hannesvdvreken/hipchat - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. hannesvdvreken/hipchat

AbandonedLibrary[Mail &amp; Notifications](/categories/mail)

hannesvdvreken/hipchat
======================

A notifier class for Hipchat notifications

v0.1.0(12y ago)123.5k2[1 issues](https://github.com/hannesvdvreken/hipchat/issues)MITPHPPHP &gt;=5.3.0

Since Jan 26Pushed 11y ago1 watchersCompare

[ Source](https://github.com/hannesvdvreken/hipchat)[ Packagist](https://packagist.org/packages/hannesvdvreken/hipchat)[ RSS](/packages/hannesvdvreken-hipchat/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (3)Used By (0)

[Hipchat](https://hipchat.com) notifier
=======================================

[](#hipchat-notifier)

[![Build Status](https://camo.githubusercontent.com/7341faedfb482a984983f63df1fa011e1822169a853579d263f99b013fb635da/68747470733a2f2f7472617669732d63692e6f72672f68616e6e657376647672656b656e2f686970636861742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/hannesvdvreken/hipchat)[![Latest Stable Version](https://camo.githubusercontent.com/dc1d158d6fe4c6b1a92478f021d94e7fbb22985fc2d680b8620833ff4bf7cd3f/68747470733a2f2f706f7365722e707567782e6f72672f68616e6e657376647672656b656e2f686970636861742f762f737461626c652e706e67)](https://packagist.org/packages/hannesvdvreken/hipchat)[![Total Downloads](https://camo.githubusercontent.com/b6360980202651c8e5d82b17b7332f50f54170c1af9909836a694199e1dcc956/68747470733a2f2f706f7365722e707567782e6f72672f68616e6e657376647672656b656e2f686970636861742f646f776e6c6f6164732e706e67)](https://packagist.org/packages/hannesvdvreken/hipchat)

Usage
-----

[](#usage)

Getting started with a *Hello World* example.

```
// Configuration.
$rooms = [
    [
        'room_id' => '1234',
        'auth_token' => '****',
    ],
];

// Create the required Guzzle client.
$client = new Guzzle\Http\Client;
$hipchat = new Hipchat\Notifier($client, $rooms);

// Send the notification.
$hipchat->notify('Hello world!');
```

If you would like to send notification to different rooms, add some to the array.

```
// Configuration.
$rooms = [
    'frontenders' => [
        'room_id' => '1234',
        'auth_token' => '****',
    ],
    'backenders' => [
        'room_id' => '5678',
        'auth_token' => '****',
    ],
];

// Create the required Guzzle client.
$client = new Guzzle\Http\Client;
$hipchat = new Hipchat\Notifier($client, $rooms);

// Send the notification.
$hipchat->notifyIn('frontenders', 'Hello world!');
```

The default room in which the `notify` method posts to is the first from the array, or you can specify which room to use as a default with a third constructor parameter:

### Extra configuration.

[](#extra-configuration)

The *constructor* accepts a third parameter with extra options.

```
$config = [
    'default' => 'frontenders',
    'color' => 'gray',
    'pretend' => true,
    'notify' => true,
];
```

- `default`: The default room to send notifications in with `->notify()`.
- `color`: Choose from `yellow`, `red`, `green`, `purple`, `gray` or `random`.
- `pretend`: Don't actually send any messages.
- `notify`: Let hipchat make a sound.

### Color

[](#color)

Choose your color depending on the type of message with the second and third parameter of the `notify` and `notifyIn` method.

```
// Example 1
$color = $error ? 'red' : 'green';
$hipchat->notify($message, $color);

// Example 2
$hipchat->notifyIn('frontenders', $message, 'purple');
```

Laravel 4
---------

[](#laravel-4)

This package comes with a Laravel 4 service provider. Add the following line to the providers array in `app.php`.

```
'Hipchat\Support\ServiceProvider',
```

It also registers an alias for the Facade class `Hipchat\Support\Facades\Hipchat` so you can just use `Hipchat::notify($message)` and `Hipchat::notifyIn('frontenders', $message)`.

Publish the default configuration with the following command:

```
php artisan config:publish hannesvdvreken/hipchat
```

All configurable options can be found there.

Contributing
------------

[](#contributing)

Feel free to make a pull request. Please try to be as [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)compliant as possible.

License
-------

[](#license)

[MIT](license)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4489d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9937cd6d2eff58e99c75bc2d4a53066e7c9cfdec457c798d5d02d37e6947f419?d=identicon)[hannesvdvreken](/maintainers/hannesvdvreken)

---

Top Contributors

[![hannesvdvreken](https://avatars.githubusercontent.com/u/1410358?v=4)](https://github.com/hannesvdvreken "hannesvdvreken (34 commits)")

---

Tags

laravelhipchatroomsserviceprovidernofication

### Embed Badge

![Health badge](/badges/hannesvdvreken-hipchat/health.svg)

```
[![Health](https://phpackages.com/badges/hannesvdvreken-hipchat/health.svg)](https://phpackages.com/packages/hannesvdvreken-hipchat)
```

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[coreproc/nova-notification-feed

A Laravel Nova package that adds a notification feed in your Nova app.

10149.1k](/packages/coreproc-nova-notification-feed)[matthewbdaly/laravel-sms

A Laravel and Lumen integration for matthewbdaly/sms-client to enable sending SMS messages

3529.8k](/packages/matthewbdaly-laravel-sms)[ashallendesign/laravel-mailboxlayer

A lightweight Laravel package for validating emails using the Mailbox Layer API.

762.0k](/packages/ashallendesign-laravel-mailboxlayer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
