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 7y 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 2w ago

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 18% 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://avatars.githubusercontent.com/u/18738423?v=4)[nevar](/maintainers/NightravenJames)[@NightravenJames](https://github.com/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.2B10.9k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1938.5M263](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M317](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

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