PHPackages                             jc-it/yii2-monolog-slack-handler - 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. jc-it/yii2-monolog-slack-handler

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

jc-it/yii2-monolog-slack-handler
================================

A Yii2 implementation of a Slack Monolog handler with more context and formatting.

v2.0.1(1y ago)041MITPHPPHP &gt;=8.1

Since Apr 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/JC-IT/yii2-monolog-slack-handler)[ Packagist](https://packagist.org/packages/jc-it/yii2-monolog-slack-handler)[ RSS](/packages/jc-it-yii2-monolog-slack-handler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (10)Versions (4)Used By (0)

A Yii2 implementation of a Slack Monolog handler.
=================================================

[](#a-yii2-implementation-of-a-slack-monolog-handler)

[![codecov](https://camo.githubusercontent.com/9a9b1bfe6b53bd092f6d01040ca583f745aad759021b3ffe473740ee221cd32b/68747470733a2f2f636f6465636f762e696f2f67682f6a632d69742f796969322d6d6f6e6f6c6f672d736c61636b2d68616e646c65722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/jc-it/yii2-monolog-slack-handler)[![Continous integration](https://github.com/jc-it/yii2-monolog-slack-handler/actions/workflows/ci.yaml/badge.svg)](https://github.com/jc-it/yii2-monolog-slack-handler/actions/workflows/ci.yaml)[![Packagist Total Downloads](https://camo.githubusercontent.com/1db62a812a93dc451021850589626256b564d9e14f6bd6b2d405d44a703a70b1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a632d69742f796969322d6d6f6e6f6c6f672d736c61636b2d68616e646c6572)](https://camo.githubusercontent.com/1db62a812a93dc451021850589626256b564d9e14f6bd6b2d405d44a703a70b1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a632d69742f796969322d6d6f6e6f6c6f672d736c61636b2d68616e646c6572)[![Packagist Monthly Downloads](https://camo.githubusercontent.com/74a9d4b8346c29a7fdd239c21444a82ac91a3474eb91582c0a572d610114b74e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6a632d69742f796969322d6d6f6e6f6c6f672d736c61636b2d68616e646c6572)](https://camo.githubusercontent.com/74a9d4b8346c29a7fdd239c21444a82ac91a3474eb91582c0a572d610114b74e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6a632d69742f796969322d6d6f6e6f6c6f672d736c61636b2d68616e646c6572)[![GitHub tag (latest by date)](https://camo.githubusercontent.com/d9099c56124f7452f0235b2d746ee3f0bec47b72a2e4b3b2f23eebdd68caf51a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6a632d69742f796969322d6d6f6e6f6c6f672d736c61636b2d68616e646c6572)](https://camo.githubusercontent.com/d9099c56124f7452f0235b2d746ee3f0bec47b72a2e4b3b2f23eebdd68caf51a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6a632d69742f796969322d6d6f6e6f6c6f672d736c61636b2d68616e646c6572)[![Packagist Version](https://camo.githubusercontent.com/638f8a35861b07535d66c087553e00e485aa307a6ac907e147f9e8eae8817bed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a632d69742f796969322d6d6f6e6f6c6f672d736c61636b2d68616e646c6572)](https://camo.githubusercontent.com/638f8a35861b07535d66c087553e00e485aa307a6ac907e147f9e8eae8817bed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a632d69742f796969322d6d6f6e6f6c6f672d736c61636b2d68616e646c6572)

This extension provides a package that implements some traits and behaviors to work with model attribute translations.

```
$ composer require jc-it/yii2-monolog-slack-handler
```

or add

```
"jc-it/yii2-monolog-slack-handler": "^"

```

to the `require` section of your `composer.json` file.

Configuration
-------------

[](#configuration)

For basic configuration see .

```
$logger = new Logger('slack-logger');
$handler = new \JCIT\components\log\SlackErrorWebhookHandler(
    webhookUrl: '',
    channel: '',
    username: '',
    level: \Monolog\Logger::WARNING,
);
$logger->pushHandler($handler);
```

TODO
----

[](#todo)

- Fix PHPStan, re-add to `captainhook.json`
    - ```
        {
            "action": "vendor/bin/phpstan",
            "options": [],
            "conditions": []
        },

        ```
- Add tests

Credits
-------

[](#credits)

- [Joey Claessen](https://github.com/joester89)
- [Sergey Makinen](https://github.com/sergeymakinen) for the abandoned [yii2-slack-log package](https://packagist.org/packages/sergeymakinen/yii2-slack-log)

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](https://github.com/jc-it/yii2-monolog-slack-handler/blob/master/LICENSE) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance40

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~307 days

Total

3

Last Release

513d ago

Major Versions

v1.0.0 → v2.0.02023-11-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/88359ebe0456645a614e563dfbf0dd025b69ef57221050cb9eb31e3eef4dd0f9?d=identicon)[joester89](/maintainers/joester89)

---

Top Contributors

[![joester89](https://avatars.githubusercontent.com/u/9624366?v=4)](https://github.com/joester89 "joester89 (8 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jc-it-yii2-monolog-slack-handler/health.svg)

```
[![Health](https://phpackages.com/badges/jc-it-yii2-monolog-slack-handler/health.svg)](https://phpackages.com/packages/jc-it-yii2-monolog-slack-handler)
```

###  Alternatives

[bedezign/yii2-audit

Yii2 Audit records and displays web/cli requests, database changes, php/js errors and associated data.

201657.4k4](/packages/bedezign-yii2-audit)[mito/yii2-sentry

Yii 2 extension for Sentry

92377.7k](/packages/mito-yii2-sentry)

PHPackages © 2026

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