PHPackages                             nevar/laravel-slack-error-logger - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. nevar/laravel-slack-error-logger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

nevar/laravel-slack-error-logger
================================

Simple slack error logger package for lower laravel packages

0561PHP

Since Jul 1Pushed 6y agoCompare

[ Source](https://github.com/NightravenJames/laravel-slack-error-logger)[ Packagist](https://packagist.org/packages/nevar/laravel-slack-error-logger)[ RSS](/packages/nevar-laravel-slack-error-logger/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Slack Error logger for laravel 5.3 to 5.5
=========================================

[](#slack-error-logger-for-laravel-53-to-55)

Simple slack error logger package for lower laravel packages
------------------------------------------------------------

[](#simple-slack-error-logger-package-for-lower-laravel-packages)

### Note versions of laravel higher thatn **5.5** already have this functionality inbuilt within them; so use this package when looking for a quick patch for this functionality.Otherwise update your laravel version.

[](#note-versions-of-laravel-higher-thatn-55-already-have-this-functionality-inbuilt-within-them-so-use-this-package-when-looking-for-a-quick-patch-for-this-functionalityotherwise-update-your-laravel-version)

#### Also it would be a good idea to switch your queue driver from `QUEUE_DRIVER=sync` to `QUEUE_DRIVER=redis` when in a production environment (this package relies on laravel jobs)

[](#also-it-would-be-a-good-idea-to-switch-your-queue-driver-from-queue_driversync-to-queue_driverredis-when-in-a-production-environment-this-package-relies-on-laravel-jobs)

1. *Install* `composer require nevar/laravel-slack-error-logger "@dev"`,
2. *Service Provider* depending on your version of laravel copy and the following *code* to `config/app.php`,

```
return [
    /*
    * Application Service Providers...
    */
    Raven\Slack\Providers\SlackServiceProvider::class,
];
```

*then run* `php artisan config:cache`.

3. *Configurations* run `php artisan vendor:publish --tag=raven-slack-error-logger` to publish the configuration file `config\slack.php` which should look like this.

```
return [
    /**
     * ---------------------------------------------------------------------------------------------------
     * slack base uri
     * ---------------------------------------------------------------------------------------------------
     */
    'base_uri' => 'https://hooks.slack.com',

    /**
     * ---------------------------------------------------------------------------------------------------
     * Enable\disable the error logger default is *true*
     * ---------------------------------------------------------------------------------------------------
     */
    'enable_error_logging' => env('SLACK_ENABLE_ERROR_LOGGING',true),

    /**
     *  ---------------------------------------------------------------------------------------------------
     * Your slack channel web hook visit https://api.slack.com/incoming-webhooks for more
     * information on how to acquire one
     *  ---------------------------------------------------------------------------------------------------
     */
    'error_web_hook' => env('SLACK_ERROR_WEBHOOK','/services/ABCD/EFGH/ijklmnopqrst')
];
```

*then override with your own settings by adding* `SLACK_ENABLE_ERROR_LOGGING` and `SLACK_ERROR_WEBHOOK`

4. *Alias* add the following alias to to `config/app.php`

```
return [
    /*
    |--------------------------------------------------------------------------
    | Class Aliases
    |--------------------------------------------------------------------------
    |
    | This array of class aliases will be registered when this application
    | is started. However, feel free to register as many as you wish as
    | the aliases are "lazy" loaded so they don't hinder performance.
    |
     */
    'Slack'        => Raven\Slack\Facades\Slack::class,
];
```

*then run* `php artisan config:cache` *again*.

5. *Implementation* add the following line of code to your exception hander within `app\Exceptions\Handler.php`

```
    /**
     * Report or log an exception.
     *
     * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
     *
     * @param  \Exception  $exception
     * @return void
     */
    public function report(Exception $exception)
    {
        \Slack::log_error($exception);
        parent::report($exception);
    }
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1472f80ae28485e433f84237d5e8f9468284bc0665748561f3572af9000acf68?d=identicon)[NightravenJames](/maintainers/NightravenJames)

---

Top Contributors

[![NightravenJames](https://avatars.githubusercontent.com/u/18738423?v=4)](https://github.com/NightravenJames "NightravenJames (1 commits)")

### Embed Badge

![Health badge](/badges/nevar-laravel-slack-error-logger/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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