PHPackages                             shalvah/monolog-pusher - 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. shalvah/monolog-pusher

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

shalvah/monolog-pusher
======================

Monolog handler for sending logs to Pusher

2.2(5y ago)1223.5k1[1 PRs](https://github.com/shalvah/monolog-pusher/pulls)MITPHPPHP &gt;= 7.2

Since Jun 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/shalvah/monolog-pusher)[ Packagist](https://packagist.org/packages/shalvah/monolog-pusher)[ RSS](/packages/shalvah-monolog-pusher/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (4)Versions (9)Used By (0)

monolog-pusher
==============

[](#monolog-pusher)

[![Build Status](https://camo.githubusercontent.com/414d74937d81363da1e9501e767ecb527fd03ccb95db51358e9934997b3f8255/68747470733a2f2f7472617669732d63692e636f6d2f7368616c7661682f6d6f6e6f6c6f672d7075736865722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/shalvah/monolog-pusher)[![Latest Stable Version](https://camo.githubusercontent.com/ab785cd4d53719da9bd61a3fb5906a4bae58ca1e91fd5d4dcea69914c3f40698/68747470733a2f2f706f7365722e707567782e6f72672f7368616c7661682f6d6f6e6f6c6f672d7075736865722f762f737461626c65)](https://packagist.org/packages/shalvah/monolog-pusher)

Monolog handler that sends logs to [Pusher Channels](https://pusher.com/channels).

Installation
------------

[](#installation)

```
composer require shalvah/monolog-pusher
```

Usage
-----

[](#usage)

- Create a new `PusherHandler`, passing in the [Pusher constructor options](https://github.com/pusher/pusher-http-php#pusher-channels-constructor) as an array:

```
$config = ['YOUR_APP_KEY', 'YOUR_APP_SECRET', 'YOUR_APP_ID', ['cluster' => 'YOUR_APP_CLUSTER']];
$handler = new \Shalvah\MonologPusher\PusherHandler($config);
```

- Alternatively, if you've already got an existing `Pusher` instance, you can pass that to the handler:

```
$pusher = new \Pusher\Pusher();
$handler = new \Shalvah\MonologPusher\PusherHandler($pusher);
```

- Attach the handler to your Monolog logger:

```
$logger = new \Monolog\Logger('pusher-logs');
$logger->pushHandler($handler);
```

- Now you can call the various log methods (`info`, `error`, `debug`and so forth) on your logger to send a log message to Pusher. The name of the Pusher channel used will be the name you set when creating your `Logger` (in the above example, "pusher-logs"). The name of the event will be *`log`*:

```
$logger->error('oops!');
```

By default, the `PusherHandler` will only log messages of level **error** and above. You can change this by passing a minimum level as a second parameter to the constructor:

```
$handler = new \Shalvah\MonologPusher\PusherHandler($config, \Monolog\Logger::DEBUG);
```

###  Health Score

37

↑

LowBetter than 83% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 87.1% 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 ~213 days

Recently: every ~248 days

Total

6

Last Release

1834d ago

Major Versions

1.2 → 2.02020-01-25

PHP version history (3 changes)1.0PHP ^7.1

2.0PHP ^7.2

2.2PHP &gt;= 7.2

### Community

Maintainers

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

---

Top Contributors

[![shalvah](https://avatars.githubusercontent.com/u/14361073?v=4)](https://github.com/shalvah "shalvah (27 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (3 commits)")[![sthussai](https://avatars.githubusercontent.com/u/45981489?v=4)](https://github.com/sthussai "sthussai (1 commits)")

---

Tags

error-handlinglogginglogsmonologpusherpusher-channelsloggingerrorlogspushermonolog

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shalvah-monolog-pusher/health.svg)

```
[![Health](https://phpackages.com/badges/shalvah-monolog-pusher/health.svg)](https://phpackages.com/packages/shalvah-monolog-pusher)
```

###  Alternatives

[analog/analog

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

3451.5M24](/packages/analog-analog)[justbetter/magento2-sentry

Magento 2 Logger for Sentry

1851.5M3](/packages/justbetter-magento2-sentry)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[mead-steve/mono-snag

Bugsnag integration for monolog. An abstract handler that sends messages to Bugsnag

20533.2k1](/packages/mead-steve-mono-snag)[logtail/monolog-logtail

Logtail handler for Monolog

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

Integration of Monolog into Nette Framework

33684.0k10](/packages/kdyby-monolog)

PHPackages © 2026

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