PHPackages                             understeam/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. [HTTP &amp; Networking](/categories/http)
4. /
5. understeam/yii2-slack

AbandonedArchivedExtension[HTTP &amp; Networking](/categories/http)

understeam/yii2-slack
=====================

Yii2 slack client based on GuzzleHttp library

v0.3.0(9y ago)19232.7k↑186.5%9[1 issues](https://github.com/Understeam/yii2-slack/issues)[1 PRs](https://github.com/Understeam/yii2-slack/pulls)2GPL-v3PHPPHP &gt;=5.4.0

Since Jun 19Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Understeam/yii2-slack)[ Packagist](https://packagist.org/packages/understeam/yii2-slack)[ RSS](/packages/understeam-yii2-slack/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (10)Used By (2)

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)

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

[](#installation)

```
php composer.phar require understeam/yii2-slack:~0.3 --prefer-dist
```

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' => 'understeam\slack\Client',
            'url' => '',
            'username' => 'My awesome application',
        ],
    ],
...
```

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

```
Yii::$app->slack->send('Hello', ':thumbs_up:', [
    [
        // attachment object
        'text' => 'text of attachment',
        'pretext' => 'pretext here',
    ],
]);
```

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

Also you can use slack as a log target:

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

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity54

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 ~66 days

Recently: every ~115 days

Total

8

Last Release

3564d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1397674?v=4)[Toly](/maintainers/AnatolyRugalev)[@AnatolyRugalev](https://github.com/AnatolyRugalev)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[zhuravljov/yii2-rest

Yii2 REST Client

1186.2k](/packages/zhuravljov-yii2-rest)[simialbi/yii2-rest-client

REST client (AR-like model) for Yii Framework 2.0 (via yii2-http-client, extends ApexWire/yii2-restclient)

2336.2k](/packages/simialbi-yii2-rest-client)

PHPackages © 2026

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