PHPackages                             nackjicholson/monolog-gitter-im - 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. nackjicholson/monolog-gitter-im

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

nackjicholson/monolog-gitter-im
===============================

Sends monolog notifications through the gitter.im api to a targeted gitter chat room.

v1.0.0(11y ago)692[1 issues](https://github.com/nackjicholson/monolog-gitter-im/issues)MITPHPPHP &gt;=5.3.0CI failing

Since Oct 29Pushed 11y agoCompare

[ Source](https://github.com/nackjicholson/monolog-gitter-im)[ Packagist](https://packagist.org/packages/nackjicholson/monolog-gitter-im)[ RSS](/packages/nackjicholson-monolog-gitter-im/feed)WikiDiscussions master Synced 1mo ago

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

monolog-gitter-im
=================

[](#monolog-gitter-im)

[![Build Status](https://camo.githubusercontent.com/d9c362f1bb359f99ceb89e585fc0186e8c6f5bccb749002c46b2562cb98a5b97/68747470733a2f2f7472617669732d63692e6f72672f6e61636b6a6963686f6c736f6e2f6d6f6e6f6c6f672d6769747465722d696d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nackjicholson/monolog-gitter-im)

Sends [monolog](https://github.com/Seldaek/monolog) notifications through the [gitter.im](https://gitter.im) api to a targeted gitter chat room.

[![screen shot 2014-10-25 at 1 02 42 pm](https://cloud.githubusercontent.com/assets/365247/4780962/0068fc30-5c82-11e4-81de-16ba0c279308.png)](https://cloud.githubusercontent.com/assets/365247/4780962/0068fc30-5c82-11e4-81de-16ba0c279308.png)

#### Install

[](#install)

With [composer](https://getcomposer.org):

`composer require "nackjicholson/monolog-gitter-im=1.x"`

or in `composer.json`:

```
"require": {
    "nackjicholson/monolog-gitter-im": "1.x"
}
```

#### Basic usage

[](#basic-usage)

```
// Default level is Logger::CRITICAL
$gitterHandler = new GitterImHandler('apiToken', 'roomId');

$logger = new Logger('gitterIm.example');
$logger->pushHandler($gitterHandler);

$logger->debug('debug will not go', ['ctx' => 'minutia']);
$logger->critical('A gitter.im critical monolog', ['ctx' => 'investigate']);
$logger->alert('A gitter.im alert monolog', ['ctx' => 'take action']);
$logger->emergency('A gitter.im emergency monolog', ['ctx' => 'boom!']);
```

This example will make separate requests to gitter api making one message for each of the monolog calls that are `>= Logger::CRITICAL`.

#### Wrap with BufferHandler

[](#wrap-with-bufferhandler)

Wrapping the `GitterImHandler` with monolog's built in `BufferHandler` makes it possible for you to only make one buffered message per execution of your program. All logs which are to be sent to Gitter are buffered and then when the program exits, they are all sent to the chat room as one batched message.

Setup is straight-forward:

```
$gitterHandler = new GitterImHandler('apiToken', 'roomId');
$bufferHandler = new BufferHandler($gitterHandler);

$logger = new Logger('gitterIm.buffered.example');
$logger->pushHandler($bufferHandler);
```

Author:
Will Vaughn
[@nackjicholsonn](https://twitter.com/nackjicholsonn)
[github:nackjicholson](https://github.com/nackjicholson)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

4213d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2e2dfa134d134300fc0136e896d2c5f28c31d864b97717bc58ae519e6c6a651?d=identicon)[nackjicholson](/maintainers/nackjicholson)

---

Top Contributors

[![nackjicholson](https://avatars.githubusercontent.com/u/365247?v=4)](https://github.com/nackjicholson "nackjicholson (21 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nackjicholson-monolog-gitter-im/health.svg)

```
[![Health](https://phpackages.com/badges/nackjicholson-monolog-gitter-im/health.svg)](https://phpackages.com/packages/nackjicholson-monolog-gitter-im)
```

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k189.7M258](/packages/symfony-monolog-bridge)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2382.6k](/packages/graycore-magento2-stdlogging)

PHPackages © 2026

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