PHPackages                             justbetter/laravel-sentry-filter-events - 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. justbetter/laravel-sentry-filter-events

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

justbetter/laravel-sentry-filter-events
=======================================

 Lets you filter certain events in Sentry using a filter list

05↑2900%PHPCI passing

Since Jun 29Pushed todayCompare

[ Source](https://github.com/justbetter/laravel-sentry-filter-events)[ Packagist](https://packagist.org/packages/justbetter/laravel-sentry-filter-events)[ RSS](/packages/justbetter-laravel-sentry-filter-events/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Sentry Filter Events
============================

[](#laravel-sentry-filter-events)

A small package that lets you filter Sentry events with an ignore list. Can also use externally hosted JSON files as lists.

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

[](#installation)

```
composer require justbetter/laravel-sentry-filter-events
```

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

[](#configuration)

You will have to enable the `before_send` handler in your `config/sentry.php`:

```
'before_send' => [\JustBetter\LaravelSentryFilterEvents\Filters\SentryFilter::class, 'beforeSend'],
```

You can then configure your `config/sentry-filter.php`, for example:

```
// List of errors to ignore
'ignore_errors' => [
    ['message' => 'Unnecessary error'],
    ['exception' => \App\UnnecessaryError::class],
],
```

You can ignore either messages that contain certain strings, or whole Exception classes.

### Global filtering

[](#global-filtering)

You can also use an external JSON file to filter errors globally. This has the same format as the list of ignore\_errors (but then in JSON). Note that Exception class names need to be complete. For example:

```
{
    {"message": "Unnecessary error"},
    {"exception": "\\App\\UnnecessaryError"},
},
```

For simplicity, the config uses the `SENTRY_FILTER_LIST_LARAVEL` env variable by default to define the filter list url. This means that if you only want to use an external filter list, you don't need to publish the config file.

Scopes
------

[](#scopes)

This package contains the ability to use multiple scopes (defined in the config file). This allows you to filter different errors in different situations.

For example, if you have Sentry enabled on your frontend, you don't want to use the same filter list as you would for your backend errors. In that case, you could create a new scope in the config for your frontend errors and retrieve the list like so:

```
$filterList = resolve(\JustBetter\LaravelSentryFilterEvents\Actions\GetFilterList::class)->get('frontend');
```

Take a look at how `src/filters/SentryFilter.php` works for more information.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance65

Regular maintenance activity

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

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/2d00b3f55cd4ae8b8cfb001a644ed6c7a1127a956c24375bcfe16ce12bd89bed?d=identicon)[justbetter](/maintainers/justbetter)

---

Top Contributors

[![Jade-GG](https://avatars.githubusercontent.com/u/32514269?v=4)](https://github.com/Jade-GG "Jade-GG (14 commits)")

### Embed Badge

![Health badge](/badges/justbetter-laravel-sentry-filter-events/health.svg)

```
[![Health](https://phpackages.com/badges/justbetter-laravel-sentry-filter-events/health.svg)](https://phpackages.com/packages/justbetter-laravel-sentry-filter-events)
```

###  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)
