PHPackages                             snapshotpl/zf-snap-hip-chat - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. snapshotpl/zf-snap-hip-chat

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

snapshotpl/zf-snap-hip-chat
===========================

HipChat module (api and logger) for Zend Framework 2

1.1(12y ago)36.7k1[1 PRs](https://github.com/snapshotpl/ZfSnapHipChat/pulls)PHPPHP &gt;=5.3.3

Since Mar 2Pushed 9y ago2 watchersCompare

[ Source](https://github.com/snapshotpl/ZfSnapHipChat)[ Packagist](https://packagist.org/packages/snapshotpl/zf-snap-hip-chat)[ RSS](/packages/snapshotpl-zf-snap-hip-chat/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

ZfSnapHipChat
=============

[](#zfsnaphipchat)

HipChat module for Zend Framework 2

Module helps to use [HipChat](https://www.hipchat.com/) API and log messages to yours rooms!

The simplest usage
------------------

[](#the-simplest-usage)

Add auth token (you can [create it here](https://inweb.hipchat.com/admin/api) - remember to set type `admin`) to your config:

```
return array(
  'zf_snap_hip_chat' => array(
    'api' => array(
      'auth_token' => 'yourauthtoken',
    ),
  ),
);
```

And then get HipChat API object from Service Manager:

```
$hipChat = $this->getServiceLocator()->get('hipchat');
```

That's all! Module uses [official HipChat library for PHP](https://github.com/hipchat/hipchat-php).

How to install?
---------------

[](#how-to-install)

Via [composer.json](https://getcomposer.org/)

```
{
  "require": {
    "snapshotpl/zf-snap-hip-chat": "1.*"
  }
}
```

and add module `ZfSnapHipChat` to `application.config.php`.

Use HipChat as logger
---------------------

[](#use-hipchat-as-logger)

To use HipChat as logger, you need to set room ID (IDs) or name (names) in config:

```
return array(
  'zf_snap_hip_chat' => array(
    'logger' => array(
      'room_id' => array(100001, 'log room'),
    ),
  ),
);
```

Now you have access to log writer from service manager:

```
$logger = new Zend\Log\Logger();
$hipChat = $this->getServiceLocator()->get('hipchat_log_writer');
$logger->addWriter($hipChat);
$logger->debug('HipChat debug message!');
```

...or logger:

```
$logger = $this->getServiceLocator()->get('hipchat_logger');
$logger->debug('HipChat debug message!');
```

Options
-------

[](#options)

You can customize logger using config:

```
return array(
  'zf_snap_hip_chat' => array(
    'api' => array(
      'auth_token' => null, // Required auth token
      'api_target' => HipChat::DEFAULT_TARGET, // Url address to HipChat API
      'api_version' => HipChat::VERSION_1, // Api version
    ),
    'logger' => array(
      'room_id' => null, // string, int or array with IDs, required for logger
      'from' => 'ZfSnapHipChat', // Author name for log messages in your rooms
      'notify' => false, // Enables sounds notify in HipChat
      'format' => HipChat::FORMAT_HTML, // Message format
    ),
  ),
);
```

Console usage
-------------

[](#console-usage)

You can manipulate HipChat API from application console. To get list of commands write in console:

```
php public/index.php

```

```
HipChat API
  index.php hipchat message send  [--room=] [--from=] [--notify] [--color=(yellow|red|gray|green|purple|random)] [--format=(html|text)]    Sends message
  index.php hipchat room list    Lists rooms
  index.php hipchat room history  [--date=]    Room's history
  index.php hipchat room set topic   [--from=]    Sets room topic

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~0 days

Total

2

Last Release

4455d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/93a2113828a101b473d256ef12e6bd89d67bcbef0621704cfeb3304c98a16a47?d=identicon)[snapshotpl](/maintainers/snapshotpl)

---

Top Contributors

[![snapshotpl](https://avatars.githubusercontent.com/u/312655?v=4)](https://github.com/snapshotpl "snapshotpl (12 commits)")

---

Tags

logloggerzf2hipchat

### Embed Badge

![Health badge](/badges/snapshotpl-zf-snap-hip-chat/health.svg)

```
[![Health](https://phpackages.com/badges/snapshotpl-zf-snap-hip-chat/health.svg)](https://phpackages.com/packages/snapshotpl-zf-snap-hip-chat)
```

###  Alternatives

[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[amphp/log

Non-blocking logging for PHP based on Amp, Revolt, and Monolog.

402.6M70](/packages/amphp-log)[apix/log

Minimalist, thin and fast PSR-3 compliant (multi-bucket) logger.

511.0M18](/packages/apix-log)[mtownsend/array-redactor

A PHP package to redact array values by their keys.

146112.3k1](/packages/mtownsend-array-redactor)[logtail/monolog-logtail

Logtail handler for Monolog

233.2M3](/packages/logtail-monolog-logtail)

PHPackages © 2026

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