PHPackages                             dlin/sentry-bundle - 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. dlin/sentry-bundle

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

dlin/sentry-bundle
==================

A Syfmony 2 Bundle for Sentry using the "raven-php" client

0.9(12y ago)028MITPHPPHP &gt;=5.3.8

Since Oct 10Pushed 12y ago1 watchersCompare

[ Source](https://github.com/dlin-me/sentry-bundle)[ Packagist](https://packagist.org/packages/dlin/sentry-bundle)[ Docs](http://dlin.me)[ RSS](/packages/dlin-sentry-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Dlin Symfony Sentry Bundle
==========================

[](#dlin-symfony-sentry-bundle)

Dlin Sentry Bundle is Symfony2 wrapper bundle for the 'raven-php' library:

This Sentry Bundle provides a configurable service to work with Sentry

Version
-------

[](#version)

0.9

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

[](#installation)

Installation using [Composer](http://getcomposer.org/)

Add to your `composer.json`:

```
json
{
    "require" :  {
        "dlin/sentry-bundle": "dev-master"
    }
}

```

Enable the bundle in you AppKernel.php

```
public function registerBundles()
{
    $bundles = array(
    ...
    new Dlin\Bundle\SentryBundle\DlinSentryBundle(),
    ...
}

```

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

[](#configuration)

The DSN url must be provided in the config.xml file. For example:

```
#app/config/config.yml

dlin_sentry:
    dsn: https://xxxxxxxxxxce4168aaafe6f658375edf:xxxxxxxxxxd44828a5ba7b78d807f5d@app.getsentry.com/123456

```

Usage
-----

[](#usage)

Geting the service in a controller

```
$service =  $this->get('dlin.sentry_service');

```

Getting the service in a ContainerAwareService

```
$service = $this->container->get('dlin.sentry_service');

```

Manually sending a message to Sentry

```
$service->captureMessage('An error is found when user clicks the button');

```

Manually reporting an exception to Sentry

```
try{
  throw new \Exception('hello, here is an exception');
}catch(\Exception $e){
    $optionalData = array();
    $optionalData['phpVersion'] = '5.3';
    $service->captureException($e, $optionalData);
}

```

Reporting errors to Sentry automatically.

```
#web/app.php
...
$kernel->loadClassCache();

$kernel->boot();
$kernel->getContainer()->get('dlin.sentry_service')->register();
...

```

License
-------

[](#license)

MIT

*Free Software, Yeah!*

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

4600d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1905715?v=4)[David Lin](/maintainers/dlin-me)[@dlin-me](https://github.com/dlin-me)

---

Tags

symfonysentry

### Embed Badge

![Health badge](/badges/dlin-sentry-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dlin-sentry-bundle/health.svg)](https://phpackages.com/packages/dlin-sentry-bundle)
```

###  Alternatives

[sentry/sentry-symfony

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

73761.4M66](/packages/sentry-sentry-symfony)[macpaw/sentry-monolog-adapter

Sentry monolog logging bundle

25232.9k](/packages/macpaw-sentry-monolog-adapter)[sandreu/cake-sentry

Sentry error handler plugin for CakePHP2

1640.2k](/packages/sandreu-cake-sentry)[crisu83/yii-sentry

Sentry for the Yii PHP framework.

1110.8k](/packages/crisu83-yii-sentry)[rcrowe/laravel-sentry

Tasty intergration of Laravel &amp; Sentry for sweet reporting of your logs

152.8k](/packages/rcrowe-laravel-sentry)

PHPackages © 2026

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