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

1.0.0(1mo ago)074↓50%[1 PRs](https://github.com/justbetter/laravel-sentry-filter-events/pulls)MITPHPPHP ^8.3CI passing

Since Jun 29Pushed 1mo agoCompare

[ Source](https://github.com/justbetter/laravel-sentry-filter-events)[ Packagist](https://packagist.org/packages/justbetter/laravel-sentry-filter-events)[ Docs](https://github.com/justbetter/laravel-sentry-filter-events)[ RSS](/packages/justbetter-laravel-sentry-filter-events/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (9)Versions (4)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

43

—

FairBetter than 89% of packages

Maintenance92

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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

Unknown

Total

1

Last Release

47d ago

### 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)")[![royduin](https://avatars.githubusercontent.com/u/1703233?v=4)](https://github.com/royduin "royduin (1 commits)")

---

Tags

laravelsentryjustbetter

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

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

[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

11.3k4.0k](/packages/leantime-leantime)[statamic/cms

The Statamic CMS Core Package

4.9k3.8M1.1k](/packages/statamic-cms)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.8M227](/packages/backpack-crud)[unopim/unopim

UnoPim Laravel PIM

10.8k2.5k](/packages/unopim-unopim)[bagisto/bagisto

Bagisto Laravel E-Commerce

28.0k175.2k9](/packages/bagisto-bagisto)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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