PHPackages                             kevariable/laravel-slack-logging - 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. kevariable/laravel-slack-logging

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

kevariable/laravel-slack-logging
================================

Report your Errors onto Slack

v1.3.0(3w ago)02.3k↑187.5%[1 PRs](https://github.com/kevariable/laravel-slack-logging/pulls)MITPHPPHP ^8.2CI passing

Since Feb 26Pushed 3w ago1 watchersCompare

[ Source](https://github.com/kevariable/laravel-slack-logging)[ Packagist](https://packagist.org/packages/kevariable/laravel-slack-logging)[ Docs](https://github.com/kevariable/laravel-slack-logging)[ GitHub Sponsors](https://github.com/kevariable)[ RSS](/packages/kevariable-laravel-slack-logging/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (36)Versions (10)Used By (0)

Laravel Slack Logging
=====================

[](#laravel-slack-logging)

[![Latest Version on Packagist](https://camo.githubusercontent.com/42791c05ba1945cb35e62ee13a8c4cb5b0ff19de8c55f79feadc65a9f74a2578/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b657661726961626c652f6c61726176656c2d736c61636b2d6c6f6767696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kevariable/laravel-slack-logging)[![GitHub Tests Action Status](https://camo.githubusercontent.com/79b92622408ecb59e3baf71fcd007b01f918ab960a351619db3e1f453e0d1039/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b657661726961626c652f6c61726176656c2d736c61636b2d6c6f6767696e672f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/kevariable/laravel-slack-logging/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/a4624474fa8f4c08ede44702dddf6e1b738cf6ad69f7bdfe849845434541e7bc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b657661726961626c652f6c61726176656c2d736c61636b2d6c6f6767696e672f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/kevariable/laravel-slack-logging/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/af6eae513f67e771472d65888c4b659cb4bb71baa1528c188284ddab4498de11/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b657661726961626c652f6c61726176656c2d736c61636b2d6c6f6767696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kevariable/laravel-slack-logging)

Laravel Slack Logging is a package that sends exception notifications directly to a Slack channel using webhooks. It includes request payload in notifications, deduplicates repeated exceptions with escalating sleep intervals, and lets you skip specific exception classes or environments.

Preview
-------

[](#preview)

[![image](https://private-user-images.githubusercontent.com/56016477/424059593-b3911287-0f0d-4422-8b4e-bccb0607e04f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI3MjAxMDQsIm5iZiI6MTc4MjcxOTgwNCwicGF0aCI6Ii81NjAxNjQ3Ny80MjQwNTk1OTMtYjM5MTEyODctMGYwZC00NDIyLThiNGUtYmNjYjA2MDdlMDRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRm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KM6XNz3P0pYHWIWqhlu5E)Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require kevariable/laravel-slack-logging

```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-slack-logging-config"

```

Usage
-----

[](#usage)

Add the Slack webhook URL to your `.env` file:

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

```

Then add the Slack logging channel to your `config/logging.php`:

```
'channels' => [
    'stack' => [
        'driver' => 'stack',
        'channels' => ['single', 'slack'],
        ...
    ],

    'slack' => [
        'driver' => 'slack-logging',
        ...
    ],
],

```

Now any exception thrown in your application will be sent to Slack.

Configuration
-------------

[](#configuration)

The published config file (`config/slack-logging.php`) provides the following options:

### Environments

[](#environments)

Only send notifications in specified environments:

```
'environments' => [
    'production',
],

```

### Except

[](#except)

Skip specific exception classes:

```
'except' => [
    Symfony\Component\HttpKernel\Exception\NotFoundHttpException::class,
],

```

### Sleep (Deduplication)

[](#sleep-deduplication)

Prevent duplicate exceptions from spamming your Slack channel. When the same exception is raised repeatedly, the sleep duration escalates through the configured steps:

```
'sleep' => [60, 120, 300],

```

OccurrenceActionNext cooldown1stSent to Slack60s2nd (within 60s)Suppressed120s3rd (within 120s)Suppressed300s4th+ (within 300s)Suppressed300s (capped)After cooldown expiresSent againResets to 60sSet to an empty array to disable deduplication:

```
'sleep' => [],

```

### Payload

[](#payload)

Request parameters are automatically included in the Slack notification when available, making it easier to debug the exception context.

Testing
-------

[](#testing)

```
composer test

```

### Testing in Your Application

[](#testing-in-your-application)

Use the facade fake to assert exceptions in your tests:

```
use Kevariable\SlackLogging\Facades\SlackLogging;

SlackLogging::fake();

// trigger exception...

SlackLogging::assertRequestsSent(1);

```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [kevariable](https://github.com/kevariable)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance94

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.6% 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 ~93 days

Recently: every ~116 days

Total

6

Last Release

26d ago

Major Versions

v0.1.1-beta → v1.0.02025-03-01

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/56016477?v=4)[Kevin](/maintainers/kevariable)[@kevariable](https://github.com/kevariable)

---

Top Contributors

[![kevariable](https://avatars.githubusercontent.com/u/56016477?v=4)](https://github.com/kevariable "kevariable (38 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

laravelkevariablelaravel-slack-logging

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/kevariable-laravel-slack-logging/health.svg)

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[keepsuit/laravel-opentelemetry

OpenTelemetry integration for laravel

167558.4k1](/packages/keepsuit-laravel-opentelemetry)

PHPackages © 2026

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