PHPackages                             walkboy/yii2-slack - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. walkboy/yii2-slack

ActiveExtension[Utility &amp; Helpers](/categories/utility)

walkboy/yii2-slack
==================

Yii2 slack client

1.0.1(3y ago)049GPL-3.0PHPPHP &gt;=5.4.0

Since Nov 8Pushed 3y agoCompare

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

READMEChangelogDependencies (2)Versions (3)Used By (0)

Yii2 Slack integration
======================

[](#yii2-slack-integration)

Designed to send messages to slack messenger

[![How it looks](https://camo.githubusercontent.com/c40f34de3a2e40abf85c7a5be33a97d13b8983775ff0e59d8faebadf7f55c130/687474703a2f2f646e2e696d6167792e6d652f3230313630322f31352f31326437646165313062666239366331353966343839303164353138653139362e706e67)](https://camo.githubusercontent.com/c40f34de3a2e40abf85c7a5be33a97d13b8983775ff0e59d8faebadf7f55c130/687474703a2f2f646e2e696d6167792e6d652f3230313630322f31352f31326437646165313062666239366331353966343839303164353138653139362e706e67)

Based on unmaintained

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

[](#installation)

```
composer require walkboy/yii2-slack:^1.0
```

Also, you should configure [incoming webhook](https://api.slack.com/incoming-webhooks) inside your Slack team.

Usage
-----

[](#usage)

First of all, configure [yiisoft/yii2-httpclient](https://github.com/yiisoft/yii2-httpclient) component:

```
...
    'components' => [
        'httpclient' => [
            'class' => 'yii\httpclient\Client',
        ],
    ],
...
```

Also you can set it up only inside of slack client:

```
...
    'components' => [
        'slack' => [
            'httpclient' => [
                'class' => 'yii\httpclient\Client',
            ],
            ...
        ],
    ],
...
```

Configure component:

```
...
    'components' => [
        'slack' => [
            'class' => 'walkboy\slack\Slack',
            'url' => '',
            'username' => 'My awesome application',
        ],
    ],
...
```

Now you can send messages right into slack channel via next command:

```
Yii::$app->slack->send('Hello', ':thumbs_up:', [
    // block object 1
    [
        'type' => 'context',
        'elements' => [
            [
                'type' => 'mrkdwn',
                'text' => 'Your markdown text here',
            ]
        ],
    ],
    // block object 2
    [
        'type' => 'divider',
    ]
]);
```

To learn more about blocks, [read Slack documentation](https://api.slack.com/incoming-webhooks)

Also you can use slack as a log target:

```
...
'components' => [
    'log' => [
        'traceLevel' => 3,
        'targets' => [
            [
                'class' => 'walkboy\slack\LogTarget',
                'categories' => ['commandBus'],
                'exportInterval' => 1, // Send logs on every message
                'logVars' => [],
            ],
        ],
    ],
],
...
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87% 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

1281d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6fdc52bd4e05a3b68e7787d7045472aec0995f51111067cf4cdf9a97f0be14b2?d=identicon)[walkboy](/maintainers/walkboy)

---

Top Contributors

[![AnatolyRugalev](https://avatars.githubusercontent.com/u/1397674?v=4)](https://github.com/AnatolyRugalev "AnatolyRugalev (20 commits)")[![wa1kb0y](https://avatars.githubusercontent.com/u/5966172?v=4)](https://github.com/wa1kb0y "wa1kb0y (3 commits)")

### Embed Badge

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

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

PHPackages © 2026

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