PHPackages                             sergeymakinen/yii2-slack-log - 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. sergeymakinen/yii2-slack-log

AbandonedArchivedYii2-extension[Logging &amp; Monitoring](/categories/logging)

sergeymakinen/yii2-slack-log
============================

Pretty Slack log target for Yii 2

v2.0.1(9y ago)24142.3k—0%4MITPHP

Since Aug 7Pushed 6y ago3 watchersCompare

[ Source](https://github.com/sergeymakinen/yii2-slack-log)[ Packagist](https://packagist.org/packages/sergeymakinen/yii2-slack-log)[ Docs](https://github.com/sergeymakinen/yii2-slack-log)[ RSS](/packages/sergeymakinen-yii2-slack-log/feed)WikiDiscussions master Synced 1mo ago

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

Slack log target for Yii 2
==========================

[](#slack-log-target-for-yii-2)

Pretty [Slack](https://slack.com) log target for Yii 2.

[![Screenshot](docs/README.png)](docs/README.png)

[![Code Quality](https://camo.githubusercontent.com/c78439dfed6c1f4bbecf8bd71b3118e8817497b3d3dbaac204d3793e74cc20ee/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7365726765796d616b696e656e2f796969322d736c61636b2d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sergeymakinen/yii2-slack-log) [![Build Status](https://camo.githubusercontent.com/22576c3187b5c85247741039a35fe59fd76467e6ea861800475360e961dba1be/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7365726765796d616b696e656e2f796969322d736c61636b2d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/sergeymakinen/yii2-slack-log) [![Code Coverage](https://camo.githubusercontent.com/c9ff79bfe3ddc90eb9ffbc97f2b8f6d8e67efad78dd10b0948a6bf07815e169f/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f7365726765796d616b696e656e2f796969322d736c61636b2d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/sergeymakinen/yii2-slack-log) [![SensioLabsInsight](https://camo.githubusercontent.com/fae4b97d2ee1f2396b7f88dc5788a3f095e9d796dcb581caf6541592cd8e6e83/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f62613932623434642d616664332d343633642d396436312d3935616333313635333761662e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/ba92b44d-afd3-463d-9d61-95ac316537af)

[![Packagist Version](https://camo.githubusercontent.com/d18ab24ca7ac3c7c70c60aa0d7cedfb27e9deff5683be6408dc05fe266856fd8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7365726765796d616b696e656e2f796969322d736c61636b2d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sergeymakinen/yii2-slack-log) [![Total Downloads](https://camo.githubusercontent.com/38a5318a14458351f0a8e905baf0abfa26abd86db3fc0b6e508203d8425a405a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7365726765796d616b696e656e2f796969322d736c61636b2d6c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sergeymakinen/yii2-slack-log) [![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

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

[](#installation)

The preferred way to install this extension is through [composer](https://getcomposer.org/download/).

Either run

```
composer require "sergeymakinen/yii2-slack-log:^2.0"
```

or add

```
"sergeymakinen/yii2-slack-log": "^2.0"
```

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

Usage
-----

[](#usage)

First set up an [incoming webhook integration](https://my.slack.com/services/new/incoming-webhook/) in your Slack team and obtain a token. It should look like `https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX`.

Then set the following Yii 2 configuration parameters:

```
'components' => [
    'log' => [
        'targets' => [
            [
                'class' => 'sergeymakinen\yii\slacklog\Target',
                'webhookUrl' => 'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX',
            ],
        ],
    ],
],
```

Sample config:

```
'components' => [
    'log' => [
        'targets' => [
            [
                'class' => 'sergeymakinen\yii\slacklog\Target',
                'levels' => ['error'],
                'except' => [
                    'yii\web\HttpException:*',
                ],
                'enabled' => YII_ENV_PROD,
                'webhookUrl' => 'https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX',
                'username' => 'Fire Alarm Bot',
                'iconEmoji' => ':poop:',
            ],
        ],
    ],
],
```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community13

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 97.9% 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 ~23 days

Total

9

Last Release

3385d ago

Major Versions

v1.3.1 → v2.0.02017-01-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/362b43cdb5f7eb9e46a3e650b533e83cf2e6492ff705693f60b646b66c0cf8a7?d=identicon)[sergeymakinen](/maintainers/sergeymakinen)

---

Top Contributors

[![sergeymakinen](https://avatars.githubusercontent.com/u/983964?v=4)](https://github.com/sergeymakinen "sergeymakinen (46 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

loglogginglogging-librarynotificationnotificationsphpphp-libraryslackyii2yii2-extensionlogloggingslackyii2yiiyii2-slack-log

### Embed Badge

![Health badge](/badges/sergeymakinen-yii2-slack-log/health.svg)

```
[![Health](https://phpackages.com/badges/sergeymakinen-yii2-slack-log/health.svg)](https://phpackages.com/packages/sergeymakinen-yii2-slack-log)
```

###  Alternatives

[mero/yii2-monolog

The Monolog integration for the Yii framework.

42186.1k](/packages/mero-yii2-monolog)[baibaratsky/yii2-rollbar

Rollbar for Yii2

35130.5k](/packages/baibaratsky-yii2-rollbar)

PHPackages © 2026

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