Vibeleaderboard
Index / tool
Visit github.com
Category
Developer Tools
Rank
Pricing
Open Source
Type
TOOL
Builder
getsentry
Latest release
4.27.0
Date

About

Official Laravel SDK for Sentry — adds error monitoring and performance tracking to your PHP app with a few lines of config.

What it does

This Composer library adapts Sentry’s PHP client to Laravel and Lumen. It captures unhandled and manually reported exceptions, enriches events with framework context, and instruments work such as database queries, queues, views, cache operations, notifications, HTTP requests, scheduled jobs, logs, metrics, and optional AI interactions.

Why it's ranked here

The SDK is a strong choice when a Laravel application already uses Sentry. It covers far more than exception reporting, supports many framework generations, and guards integrations with optional Laravel packages. Its value depends on accepting Sentry as the destination and managing a broad configuration surface.

What's good

Instrumentation reaches common Laravel execution paths instead of stopping at web requests. Queue jobs, SQL, views, Livewire, cache, Redis, notifications, storage, schedules, and HTTP clients receive targeted handling. Optional integrations are guarded, while tests span multiple PHP, Laravel, and PHPUnit generations. Privacy-sensitive SQL bindings and personal information remain disabled by default.

Tradeoffs

Laravel 11 and newer still require an explicit exception-handling setup step. Compatibility across Laravel 6 through 13 creates substantial conditional behavior, and some optional integrations have only partial coverage. Static analysis runs at a low level with a baseline of known errors. Several tracing features default on, so teams should inspect sampling, privacy, and overhead settings.

How to use it well

Use it in Laravel or Lumen services whose operators want application failures, traces, logs, metrics, and scheduled-job signals collected by Sentry. Start with exception capture, then enable sampling and inspect each automatic integration against privacy and cost needs. It does not provide a runnable application or replace the Sentry destination itself.

Technical notes+

composer.json declares a Composer library named sentry/sentry-laravel, requires PHP ^7.2 | ^8.0, illuminate/support ^6.0 through ^13.0, and sentry/sentry ^4.28.0, with PSR-0 loading from src/. Laravel package discovery registers Sentry\Laravel\ServiceProvider and Sentry\Laravel\Tracing\ServiceProvider. README.md documents Integration::handles($exceptions) for unhandled exceptions and the sentry:publish Artisan command. config/sentry.php exposes sampling, logs, metrics, breadcrumbs, privacy, and detailed tracing switches. phpunit.xml runs test/Sentry/ with strict output checking, while composer.json provides PHPUnit, PHPStan, and PHP-CS-Fixer scripts. phpstan.neon analyzes src at level 1 using phpstan-baseline.neon.

Observed

License
MIT
Primary language
PHP
Package type
Composer library
Install surface
Composer package sentry/sentry-laravel
Interfaces
Laravel library integration plus an Artisan configuration command
Framework support
illuminate/support versions 6 through 13
Runtime support
PHP 7.2 and PHP 8.x are allowed by the package constraint
Test structure
PHPUnit suite under test/Sentry with Orchestra Testbench development support

Read from README.md, Makefile, composer.json, LICENSE, AGENTS.md, CLAUDE.md, .craft.yml, codecov.yml, phpunit.xml, CHANGELOG.md, phpstan.neon, CONTRIBUTING.md, .php-cs-fixer.php, phpstan-baseline.neon, config/sentry.php.

What it can do

  • Monitor and capture PHP application errors

    PHP exceptions and errors from Laravel applicationError reports sent to Sentry dashboard

  • Track application performance metrics

    Laravel application requests and database queriesPerformance data and transaction traces

  • Capture custom error events

    Custom exceptions and error messages from codeStructured error reports with context data

  • Monitor database query performance

    Laravel Eloquent and database queriesQuery execution times and performance insights

  • Track user context with errors

    User session data and request informationError reports enriched with user and request context

  • Configure error filtering and sampling

    SDK configuration settingsFiltered error collection based on rules and sample rates

Tags

phplaravelsentryerror-monitoringsdk

Tech Stack

PHP

Comments (0)

No comments yet

Editorially curated, with community endorsements as a secondary signal. Corrections welcome.