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 today

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 86% 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

2652d 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

[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.

44542.4k1](/packages/pressbooks-pressbooks)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169175.3k2](/packages/spatie-laravel-mix-preload)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

62538.4k1](/packages/ytake-laravel-fluent-logger)

PHPackages © 2026

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