getsentry

getsentry/sentry-php

PHP MIT DevOps

The official PHP SDK for Sentry (sentry.io)

1.9k stars
471 forks
active
GitHub +1 / week

1.9k

Stars

471

Forks

38

Open issues

30

Contributors

4.29.0 29 Jun 2026

AI Analysis

The official Sentry PHP SDK enables error tracking and crash reporting for PHP applications, sending exceptions and events to Sentry.io for real-time monitoring. It is purpose-built for PHP developers and teams using error monitoring as part of their observability stack, offering direct integrations with Symfony and Laravel. Not suitable for teams requiring a self-hosted error monitoring solution or those not already invested in the Sentry platform.

DevOps Developer Tool Discovery value: 2/10
Documentation 8/10
Activity 9/10
Community 8/10
Code quality 8/10

Inferred from signals mentioned in the README (tests, CI, type safety) — not a review of the actual code.

Overall score 8/10

AI's overall editorial judgment — not an average of the bars above, can weigh other factors too.

error-monitoring crash-reporting php-sdk observability exception-tracking
Actively maintained Well documented MIT licensed Popular Beginner friendly Production ready
Deep Analysis · Based on README and public signals
1w ago

Official Sentry PHP SDK: mature error tracking integration with broad framework support

The official PHP SDK for Sentry, a SaaS error tracking and monitoring platform. Enables PHP developers to capture and report exceptions, errors, and performance issues to a centralized Sentry instance. Used across Laravel, Symfony, Drupal, WordPress, and numerous other frameworks. Maintained by Sentry's core team as part of their multi-language SDK ecosystem. Represents the primary mechanism for PHP application telemetry collection into Sentry's platform.

Origin

Created in 2012 as Sentry expanded from its Python origins. Evolved through multiple major versions (1.x through 4.x), with legacy integrations documented for deprecated SDK versions. Now in stable, feature-complete state as part of Sentry's standardized SDK family across Go, Python, JavaScript, and PHP.

Growth

Growth appears steady but not accelerating. 1,914 stars and 470 forks indicate established adoption rather than explosive growth. Last 7 days: 1 star gain suggests mature project receiving primarily maintenance attention rather than viral adoption. Growth likely driven by Sentry's overall market expansion in error tracking rather than SDK-specific innovation.

In production

Strong indirect adoption signals: official framework integrations for Laravel (1,345 stars) and Symfony (not starred in comparable list, but mentioned as 'fully supported'); 3rd-party community integrations documented for 10+ platforms (Drupal, WordPress, Magento, Joomla, TYPO3, Neos, etc.). Packagist metrics referenced in badge but specific download counts not visible in truncated README. Adoption not explicitly quantified but framework ecosystem coverage and maintained integrations suggest substantial real-world usage.

Code analysis
Architecture

Based on README, appears to follow standard SDK pattern: DSN-based initialization, exception capture API, and integration layer architecture. Supports automatic instrumentation via framework integrations (Symfony, Laravel built-in; others via community packages). Likely uses HTTP transport to Sentry backend. Repository structure suggests modular design with framework-specific adapters.

Tests

README documents CI badge and codecov integration, indicating automated testing infrastructure is present and tracked. Specific coverage percentage not visible in truncated README; confident testing is active but exact metrics not documented in excerpt.

Maintenance

Last push 2026-06-30 (2 days before analysis date) indicates active maintenance. CI/CD pipelines shown as operational. Project is 14+ years old (created 2012-01-23) and still receiving commits. Maintenance appears continuous but incremental—typical of a mature, stable library. Not stagnant, not high-velocity; consistent stewardship pattern.

Honest verdict

ADOPT IF: you are running PHP applications and using Sentry as your error tracking platform; Laravel or Symfony applications where integrations are officially maintained; you need framework-aware error capture with minimal configuration. AVOID IF: you require a client-side-only error tracking solution without backend dependency; you are locked into competing SaaS error tracking platforms (Rollbar, Bugsnag); you have strong preference for pull-based observability (APM agents). MONITOR IF: you are evaluating Sentry vs. alternative error tracking platforms; you maintain a less common PHP framework—check whether community integration exists and is current.

Independent dimensions

Mainstream potential

6/10

Technical importance

7/10

Adoption evidence

7/10

Risks
  • Platform lock-in: SDK is purpose-built for Sentry SaaS / self-hosted; switching error tracking platforms requires replacing instrumentation throughout codebase.
  • Dependency on Sentry uptime: Errors are reported to Sentry backend; if Sentry SaaS has extended outage, error telemetry is lost (though exceptions still occur). Self-hosted deployments inherit availability risk of that deployment.
  • Framework integration lag: Community integrations for non-primary frameworks (Drupal, WordPress, etc.) may lag behind SDK updates; adoption of new SDK versions may be uneven.
  • Network overhead: Asynchronous error reporting to backend introduces network calls; misconfiguration could impact application performance if buffering/batching not tuned.
  • Privacy and data egress: Error reports are sent to Sentry service; organizations with strict data residency or privacy requirements must ensure compliance (Sentry offers compliance docs, but this is operational risk).
Prediction

Project will remain stable and actively maintained as core component of Sentry's PHP ecosystem. Unlikely to see major feature explosions; growth will follow Sentry's overall market adoption rather than SDK innovation. Migration of framework integrations to newer Laravel/Symfony versions will continue incrementally. Potential expansion if Sentry adds language-agnostic features that require SDK-level support (e.g., new profiling modes, session tracking).

0 found this helpful

Newsletter

Get analyses like this every Monday

Free weekly digest of the most interesting open-source discoveries.

Languages

PHP
100%
Shell
0%

Information

Language
PHP
License
MIT
Last updated
3d ago
Created
176mo ago
Analyzed with
anthropic/claude-haiku-4-5

Stars over time

Loading…

Contributors over time

Top 100 contributors only — repos with more will plateau at 100.

Loading…

Similar repos

getsentry

getsentry/sentry-laravel

The official Laravel SDK for Sentry, enabling Laravel applications to capture...

1.3k PHP Dev Tools
getsentry

getsentry/sentry-python

The official Python SDK for Sentry.io, a crash-reporting and error-tracking...

2.2k Python DevOps
getsentry

getsentry/sentry-go

sentry-go is the official Go SDK for Sentry, a platform for error monitoring...

1.1k Go DevOps
getsentry

getsentry/sentry

Sentry is a comprehensive error tracking and performance monitoring platform...

44.3k Python DevOps
getsentry

getsentry/sentry-javascript

Official Sentry SDKs for JavaScript providing error monitoring and crash...

8.7k TypeScript Dev Tools
vs. alternatives
Rollbar PHP SDK

Rollbar also offers PHP error tracking. Sentry-PHP is officially maintained by Sentry with tighter framework integration (Laravel, Symfony). Rollbar is positioned as alternative SaaS error tracking with different pricing and feature trade-offs.

Bugsnag PHP SDK

Bugsnag provides competing SaaS error tracking with PHP SDK. Similar feature parity; differentiation is primarily in SaaS platform features, pricing, and UI rather than SDK capabilities.

Datadog APM (PHP)

Datadog's tracer captures errors as part of broader APM suite. Positioned differently—Sentry is error-tracking-focused SaaS; Datadog is full-stack observability platform. Complementary rather than directly competing.

New Relic PHP Agent

New Relic's agent provides error tracking within comprehensive monitoring platform. Sentry-PHP is lighter-weight, more error-focused; New Relic is broader APM platform. Different positioning.

Self-hosted ELK / Sentry self-hosted

Organizations can self-host Sentry or use ELK stack for error logging. Sentry-PHP SDK works with both Sentry SaaS and self-hosted; this is architecture choice rather than direct competitor.