PHPackages                             mizanur/slack-notifier - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. mizanur/slack-notifier

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

mizanur/slack-notifier
======================

Slack Notifier for PHP

v1.6(5y ago)01.3kMITPHPPHP &gt;=5.3.0

Since Jun 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mizan3008/slack-notifier)[ Packagist](https://packagist.org/packages/mizanur/slack-notifier)[ Docs](https://github.com/mizanur-rahman/slack-notifier.git)[ RSS](/packages/mizanur-slack-notifier/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (7)DependenciesVersions (8)Used By (0)

Slack Notifier
==============

[](#slack-notifier)

Super-simple, minimum abstraction SlackNotifier v1, in PHP.

Requires PHP 5.3 and a pulse.

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

[](#installation)

You can install the slack-notifier using Composer:

```
composer require mizanur/slack-notifier

```

or

```
php composer.phar require mizanur/slack-notifier

```

HOW TO USER
-----------

[](#how-to-user)

You can start with .env or without .env

With .env

We need setup some configuration variable in .env

```
SLACK-WEBHOOK=https://hooks.slack.com/services/---/---/---

```

Initialize slack notifier

```
$slackNotifier = new \SlackNotifier\SlackNotifier();

```

Without .env

Initialize slack notifier

```

$slackNotifier = new \SlackNotifier\SlackNotifier('SLACK-WEBHOOK');

```

Send error notification to your slack channel

```
$slackNotifier->notifyError('YOUR ERROR MESSAGE');

```

Send success or info notification to your slack channel

```
$slackNotifier->notifyInfo('YOUR MESSAGE');

```

Send exception notification to your slack channel

```

try{
    #Your code...
}catch(\Exception $ex){
    $slackNotifier->notifyException($ex);
}

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 88.2% 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 ~197 days

Recently: every ~294 days

Total

7

Last Release

2124d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9748b0766b24b61753b31be891038b23e2207790d4a8892451cc4457027e4392?d=identicon)[mizan3008](/maintainers/mizan3008)

---

Top Contributors

[![mizan3008](https://avatars.githubusercontent.com/u/6143192?v=4)](https://github.com/mizan3008 "mizan3008 (15 commits)")[![mizanur-rahman](https://avatars.githubusercontent.com/u/52867202?v=4)](https://github.com/mizanur-rahman "mizanur-rahman (2 commits)")

---

Tags

slack-notifier-php

### Embed Badge

![Health badge](/badges/mizanur-slack-notifier/health.svg)

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

###  Alternatives

[mattketmo/email-checker

Throwaway email detection library

2752.1M5](/packages/mattketmo-email-checker)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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