PHPackages                             indielab/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. [API Development](/categories/api)
4. /
5. indielab/yii2-slack

ActiveLibrary[API Development](/categories/api)

indielab/yii2-slack
===================

Yii Post Message to Slack Channel

1.1.0(7y ago)311.6k↑43.8%PHP

Since Apr 20Pushed 7y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Yii 2 Slack Component
=====================

[](#yii-2-slack-component)

Post a message to a Slack Channel. Pedefined functions to enable coloring.

Setup
-----

[](#setup)

Add the `indielab/yii2-slack` package to your composer.json

```
composer require indielab/yii2-slack
```

Add the component to your config in the components section:

```
'components' => [
    // ...
    'slack' => [
        'class' => 'Indielab\Slack\Client',
        'token' => 'xoxp-1234567891-1234567891-1234567891',
        'channel' => 'indielab',
        'username' => 'Slack Bot',
    ]
]
```

Using in your Application:

```
Yii::$app->slack->message('Just a Message')->send();
```

Send colorized Messages:

```
Yii::$app->slack->danger('Very dangerous!')->send();
```

- danger
- warning
- success

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

2

Last Release

2636d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86184bf08843ed8fcc4aedb2fdecd8a9e832e47e89a7166cebfda529c176f5ce?d=identicon)[nadar](/maintainers/nadar)

---

Top Contributors

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

---

Tags

phpapislack

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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