PHPackages                             mezonix/sf-sentry-plugin - 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. mezonix/sf-sentry-plugin

ActiveSymfony1-plugin[Logging &amp; Monitoring](/categories/logging)

mezonix/sf-sentry-plugin
========================

Symfony 1.x plugin for Sentry

1.1.2(5y ago)01.4k2MITPHPPHP ^5.3|^7.0

Since May 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/fedotov-as/sfSentryPlugin)[ Packagist](https://packagist.org/packages/mezonix/sf-sentry-plugin)[ RSS](/packages/mezonix-sf-sentry-plugin/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

sfSentryPlugin
==============

[](#sfsentryplugin)

[![Packagist Downloads](https://camo.githubusercontent.com/26a04d794a2b339d7dc3a945e3fe0f39c80eba035e0eee8d8e03d9d17401b6e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d657a6f6e69782f73662d73656e7472792d706c7567696e)](https://packagist.org/packages/mezonix/sf-sentry-plugin)[![Latest Stable Version](https://camo.githubusercontent.com/8022f0b43aadf6af50825886897df8b9e940b5fa6d63b4eb5ad2b3647454a32f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d657a6f6e69782f73662d73656e7472792d706c7567696e)](https://packagist.org/packages/mezonix/sf-sentry-plugin)[![License](https://camo.githubusercontent.com/9babb33c3c36c8bd85241ed0048e43fe1ce8ffaa795202ed2f7e91e5b99e1c4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d657a6f6e69782f73662d73656e7472792d706c7567696e)](https://packagist.org/packages/mezonix/sf-sentry-plugin)

Enable remote logging to [Sentry](https://getsentry.com/welcome/) into Symfony1 applications.

Listens to events:

- Fatal errors (syntax error, out of memory)
- Warnings (undefined variable, headers sent, deprecated)
- Exceptions

Support for sending custom events:

- Exceptions
- Messages with any error level

Requirements
------------

[](#requirements)

- PHP ≥ 5.3
- Symfony ≥ 1.4
- Sentry instance

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

[](#installation)

With composer

```
composer require mezonix/sf-sentry-plugin

```

Add to your project configuration:

```
# config/ProjectConfiguration.php

class ProjectConfiguration extends sfProjectConfiguration
{
  public function setup()
  {
    $this->enablePlugins(array(
      // ...
      'sfSentryPlugin',
    ));
  }
}
```

Configure the Sentry client. The DSN can be found in the Sentry interface.

```
# config/sentry.yml

all:
  client:
    dsn: http://public@sentry.example.com:9000/[PROJECT_ID]
    options:
      release: ~
      exclude:
        - sfStopException
      auto_log_stacks: true
```

- `dsn` - Sentry connection URL.
- `options/release` - Release version or tag name.
- `options/exclude` - List of exception classes that are ignored.
- `options/auto_log_stacks` - Generates a backtrace. See [debug-backtrace](https://php.net/manual/en/function.debug-backtrace.php).

Usage
-----

[](#usage)

#### Sentry

[](#sentry)

```
// send debug message
Sentry::sendDebug('Debug message text');

// send information message
Sentry::sendInfo('Information message text');

// send warning message
Sentry::sendWarn('Warning message text');

// send error message
Sentry::sendError('Error message text');

// send error message with variables
Sentry::sendError('Error message text', array('foo' => 'bar'));

// send exception
Sentry::sendException(new Exception('Exception message'));

// send exception with variables
Sentry::sendException(new Exception('Exception message'), array('foo' => 'bar'));
```

License
-------

[](#license)

[![FOSSA Status](https://camo.githubusercontent.com/ff1ebf225a88a6c1202ff92197a099f52544d081a3e0fa9d1bf522440318f2de/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d2532466665646f746f762d6173253246736653656e747279506c7567696e2e7376673f747970653d6c61726765)](https://app.fossa.com/projects/git%2Bgithub.com%2Ffedotov-as%2FsfSentryPlugin?ref=badge_large)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54% 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 ~6 days

Total

4

Last Release

2178d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2820371?v=4)[mezonix](/maintainers/mezonix)[@MeZoNiX](https://github.com/MeZoNiX)

---

Top Contributors

[![fedotov-as](https://avatars.githubusercontent.com/u/7966803?v=4)](https://github.com/fedotov-as "fedotov-as (34 commits)")[![jeromemacias](https://avatars.githubusercontent.com/u/582446?v=4)](https://github.com/jeromemacias "jeromemacias (13 commits)")[![GromNaN](https://avatars.githubusercontent.com/u/400034?v=4)](https://github.com/GromNaN "GromNaN (10 commits)")[![j0k3r](https://avatars.githubusercontent.com/u/62333?v=4)](https://github.com/j0k3r "j0k3r (5 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")

---

Tags

loggingphpsentrysymfony1-pluginsentryloggersymfony1

### Embed Badge

![Health badge](/badges/mezonix-sf-sentry-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/mezonix-sf-sentry-plugin/health.svg)](https://phpackages.com/packages/mezonix-sf-sentry-plugin)
```

###  Alternatives

[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)[sentry/sentry-symfony

Symfony integration for Sentry (http://getsentry.com)

73761.4M66](/packages/sentry-sentry-symfony)[sentry/sdk

This is a meta package of sentry/sentry. We recommend using sentry/sentry directly.

327134.8M151](/packages/sentry-sdk)[justbetter/magento2-sentry

Magento 2 Logger for Sentry

1851.5M3](/packages/justbetter-magento2-sentry)[stayallive/wp-sentry

A (unofficial) WordPress plugin to report PHP and JavaScript errors to Sentry.

379197.9k](/packages/stayallive-wp-sentry)[mito/yii2-sentry

Yii 2 extension for Sentry

92377.7k](/packages/mito-yii2-sentry)

PHPackages © 2026

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