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

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

ambikuk/yii2-slack
==================

Yii2 slack client based library

0.1.0(8y ago)09.6kGPL-3.0PHP

Since Jul 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ambikuk/yii2-slack)[ Packagist](https://packagist.org/packages/ambikuk/yii2-slack)[ RSS](/packages/ambikuk-yii2-slack/feed)WikiDiscussions master Synced today

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

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

[](#yii2-slack-integration)

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

[](#installation)

add

```
"ambikuk/yii2-slack": "*"

```

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

this extension just wrapper to

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

Usage
-----

[](#usage)

Configure component:

```
...
    'components' => [
        'slack' => [
            'class' => 'ambikuk\yiislack\Slack',
            'url' => '',
            'username' => 'Slack Bot',
            'channel' => '#channel'
        ],
    ],
...
```

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

```
Yii::$app->slack->send('New alert from the monitoring system', [
    'fallback' => 'Current server stats',
    'text' => 'Current server stats',
    'color' => 'danger',
    'fields' => [
        [
          'title' => 'CPU usage',
          'value' => '90%',
          'short' => true // whether the field is short enough to sit side-by-side other fields, defaults to false
        ],
        [
          'title' => 'RAM usage',
          'value' => '2.5GB of 4GB',
          'short' => true
        ]
    ]
]);
```

Use custom settings

```
$slack = Yii::$app->slack;
$slack->setSetting([
    'username' => 'Jack',
    'channel' => '#mychannel'
]);
$slack->send('Are we rich yet?');
```

Use Maknz\\Slack\\Client functions

```
$slack = Yii::$app->slack->getClient();
$slack->to('@username')->send('Yo!');
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

3211d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/82e8ba109b4cb61c161ed81ccd7e3a3181b2dc33cb65c2016008aafea204142f?d=identicon)[ambikuk](/maintainers/ambikuk)

---

Top Contributors

[![ambikuk](https://avatars.githubusercontent.com/u/1784571?v=4)](https://github.com/ambikuk "ambikuk (6 commits)")[![buhori2023](https://avatars.githubusercontent.com/u/121916989?v=4)](https://github.com/buhori2023 "buhori2023 (1 commits)")

---

Tags

slackyii2extension

### Embed Badge

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

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

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7859.0k](/packages/vyants-yii2-daemon)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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