PHPackages                             freshbitsweb/slack-error-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. freshbitsweb/slack-error-notifier

ActiveLibrary

freshbitsweb/slack-error-notifier
=================================

Send a message to a Slack channel when error occurs in your Laravel Application

v1.0.3(7y ago)49103.5k↑42%10MITPHPPHP &gt;=7.0

Since Dec 13Pushed 7y ago2 watchersCompare

[ Source](https://github.com/freshbitsweb/slack-error-notifier)[ Packagist](https://packagist.org/packages/freshbitsweb/slack-error-notifier)[ RSS](/packages/freshbitsweb-slack-error-notifier/feed)WikiDiscussions 5.5 Synced 1mo ago

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

[![Slack Error Notifier](./slack-error-notifier.png "Slack Error Notifier")](./slack-error-notifier.png)

Slack Error Notifier (Alternative to *Bugsnag/Sentry*) (Laravel 5.5)
====================================================================

[](#slack-error-notifier-alternative-to-bugsnagsentry-laravel-55)

If you can't use *Bugsnag* or *Sentry* for monitoring your **production Laravel application**, here is a really simple solution to get notified when anything goes wrong.

This is a *plug-and-play* Laravel package to send a message to a Slack channel via an [Incoming WebHook](https://api.slack.com/incoming-webhooks) when error/exception occurs in your application.

**Note**: Logging feature had major updates in Laravel 5.6. you may use [Laravel Log Enhancer](https://github.com/freshbitsweb/laravel-log-enhancer) package for it.

Requirements
------------

[](#requirements)

- PHP 7.0+
- Laravel 5.5

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

[](#installation)

1. Install the package by running this command in your terminal/cmd:

```
composer require freshbitsweb/slack-error-notifier

```

2. Import config file by running this command in your terminal/cmd:

```
php artisan vendor:publish --tag=slack-error-notifier-config

```

3. Create an [Incoming WebHook](https://my.slack.com/services/new/incoming-webhook/) in your Slack account and put *Webhook URL* in your .env file for **SLACK\_WEBHOOK\_URL** variable

```
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/xxxxxxxxxxxxxxxxxxxxxxxx

```

4. Optinal: Change configuration settings:

- (bool) add\_memory\_usage =&gt; Set to *true* if you wish to send memory usage in the slack message
- (bool) add\_request\_headers =&gt; Set to *true* if you wish to send request headers in the slack message
- (bool) add\_session\_data =&gt; Set to *true* if you wish to send session data in the slack message
- (bool) add\_input\_data =&gt; Set to *true* if you wish to send input data in the slack message
- (array) ignore\_request\_fields =&gt; If input data is being sent, you can specify the inputs from the user that should not be sent to Slack for example, password,cc number, etc.
- (env) SLACK\_LOG\_LEVEL =&gt; Specify minimum error level (#1) to notify slack.

And it's done. Yeah, that simple. Here's a video demo for a quick look:

[![Youtube Video](./youtube-thumb.png "Youtube Video")](https://www.youtube.com/watch?v=jeljU856bzE)

#### Note

[](#note)

This package uses *Monolog* library and sends a notification message based on the [**log\_level**](https://laravel.com/docs/5.5/errors#log-severity-levels) configuration setting. So, if you set it to *alert*, only alert and emergency level errors will be considered.

Authors
-------

[](#authors)

- [**Gaurav Makhecha**](https://github.com/gauravmak) - *Initial work*

See also the list of [contributors](https://github.com/freshbitsweb/slack-error-notifier/graphs/contributors) who participated in this project.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

Special Thanks to
-----------------

[](#special-thanks-to)

- Laravel Community

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community11

Small or concentrated contributor base

Maturity61

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

Total

5

Last Release

2701d ago

Major Versions

v1.0.2 → 5.5.x-dev2018-12-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/2628a8e3bd55b2ab1a2b4aaccb5a88d33854348c7a7d99e4f76f49c502692329?d=identicon)[gauravmak](/maintainers/gauravmak)

---

Top Contributors

[![gauravmak](https://avatars.githubusercontent.com/u/11887260?v=4)](https://github.com/gauravmak "gauravmak (13 commits)")

---

Tags

error-reportinglaravellaravel-5-packagenotification-servicephpphp7slackslack-apislack-notificationsslack-webhook

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[mateusjunges/laravel-kafka

A kafka driver for laravel

7163.1M17](/packages/mateusjunges-laravel-kafka)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.2M](/packages/honeybadger-io-honeybadger-laravel)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

42155.0k19](/packages/rareloop-lumberjack-core)

PHPackages © 2026

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