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

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

sentry/sentry-symfony
=====================

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

5.9.0(2mo ago)73661.4M—7.2%184[15 issues](https://github.com/getsentry/sentry-symfony/issues)[3 PRs](https://github.com/getsentry/sentry-symfony/pulls)20MITPHPPHP ^7.2||^8.0CI passing

Since Apr 29Pushed yesterday53 watchersCompare

[ Source](https://github.com/getsentry/sentry-symfony)[ Packagist](https://packagist.org/packages/sentry/sentry-symfony)[ Docs](http://getsentry.com)[ Fund](https://sentry.io/)[ Fund](https://sentry.io/pricing/)[ RSS](/packages/sentry-sentry-symfony/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (34)Versions (122)Used By (20)

 [ ![Sentry](https://camo.githubusercontent.com/63d7d9ecd366a58bdf965da3824d392a4ef345b8097753faa12ae07738ac8431/68747470733a2f2f73656e7472792d6272616e642e73746f726167652e676f6f676c65617069732e636f6d2f73656e7472792d776f72646d61726b2d6461726b2d3238307838342e706e67) ](https://sentry.io/?utm_source=github&utm_medium=logo)

*Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us [**Check out our open positions**](https://sentry.io/careers/)*

Official Sentry SDK for Symfony
===============================

[](#official-sentry-sdk-for-symfony)

[![Stable release](https://camo.githubusercontent.com/2446775afa4bdfeaff651e2a22cb53ee3f284431849624a221e0c44bd0584db4/68747470733a2f2f706f7365722e707567782e6f72672f73656e7472792f73656e7472792d73796d666f6e792f76657273696f6e2e737667)](https://packagist.org/packages/sentry/sentry-symfony)[![License](https://camo.githubusercontent.com/121cce4d92f02c2308a2235560430bcd1b7ca8ada388d8bcba2e8b3f7f28f171/68747470733a2f2f706f7365722e707567782e6f72672f73656e7472792f73656e7472792d73796d666f6e792f6c6963656e7365)](https://packagist.org/packages/sentry/sentry-symfony)[![Total Downloads](https://camo.githubusercontent.com/0108c6e4ee93232a04e9afa75e3096f9cfde877deb05934e6582e0f49efb5434/68747470733a2f2f706f7365722e707567782e6f72672f73656e7472792f73656e7472792d73796d666f6e792f646f776e6c6f616473)](https://packagist.org/packages/sentry/sentry-symfony)[![Monthly Downloads](https://camo.githubusercontent.com/ecbd35a279c4dc786eca05a90dbc4a0dbd11e28da2df371130fec8f68b56e8b7/68747470733a2f2f706f7365722e707567782e6f72672f73656e7472792f73656e7472792d73796d666f6e792f642f6d6f6e74686c79)](https://packagist.org/packages/sentry/sentry-symfony)

[![CI](https://github.com/getsentry/sentry-symfony/actions/workflows/tests.yaml/badge.svg)](https://github.com/getsentry/sentry-symfony/actions/workflows/tests.yaml)[![Coverage Status](https://camo.githubusercontent.com/f038b4981ceacb69b63c37b5285888bd1bd679719cd658c3712be10bdcd758bf/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f67657473656e7472792f73656e7472792d73796d666f6e792f6d61737465723f6c6f676f3d636f6465636f76)](https://codecov.io/gh/getsentry/sentry-symfony/branch/master)[![Discord](https://camo.githubusercontent.com/2da2973533965a9404e5ef0683e6cd8192988281f5860256076294e906b9c40c/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f363231373738383331363032323231303634)](https://discord.gg/cWnMQeA)[![X Follow](https://camo.githubusercontent.com/e11a6ee45c3be7e08fcf505154c42d5aeded64de7ef97ee539a3d9f96e211a41/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f73656e7472793f6c6162656c3d73656e747279267374796c653d736f6369616c)](https://x.com/intent/follow?screen_name=sentry)

This is the official Symfony SDK for [Sentry](https://getsentry.com/).

Getting Started
---------------

[](#getting-started)

### Install

[](#install)

Install the SDK using [Composer](https://getcomposer.org/).

```
composer require sentry/sentry-symfony
```

### Configure

[](#configure)

Add the [Sentry DSN](https://docs.sentry.io/quickstart/#configure-the-dsn) to your `.env` file.

```
###> sentry/sentry-symfony ###
SENTRY_DSN="https://public@sentry.example.com/1"
###< sentry/sentry-symfony ###

```

### Usage

[](#usage)

```
use function Sentry\captureException;

try {
    $this->functionThatMayFail();
} catch (\Throwable $exception) {
    captureException($exception);
}
```

Contributing to the SDK
-----------------------

[](#contributing-to-the-sdk)

Please refer to [CONTRIBUTING.md](CONTRIBUTING.md).

### Thanks to all the people who contributed so far!

[](#thanks-to-all-the-people-who-contributed-so-far)

[ ![](https://camo.githubusercontent.com/54f9ed00cdbb2df6f1142ddd9e67d2b1101afe50b94378f3de7af44a7a2fedaa/68747470733a2f2f636f6e7472696275746f72732d696d672e7765622e6170702f696d6167653f7265706f3d67657473656e7472792f73656e7472792d73796d666f6e79)](https://github.com/getsentry/sentry-symfony/graphs/contributors)Getting help/support
--------------------

[](#getting-helpsupport)

If you need help setting up or configuring the Symfony SDK (or anything else in the Sentry universe) please head over to the [Sentry Community on Discord](https://discord.com/invite/Ww9hbqr). There is a ton of great people in our Discord community ready to help you!

Resources
---------

[](#resources)

- [![Documentation](https://camo.githubusercontent.com/89b631a7c9f547c7fff1464870c5b11aad560fe0cc1114774e8ea5addbc69f9e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63756d656e746174696f6e2d73656e7472792e696f2d677265656e2e737667)](https://docs.sentry.io/quickstart/)
- [![Discord](https://camo.githubusercontent.com/2da2973533965a9404e5ef0683e6cd8192988281f5860256076294e906b9c40c/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f363231373738383331363032323231303634)](https://discord.gg/Ww9hbqr)
- [![Stack Overflow](https://camo.githubusercontent.com/e69d3e4fed2234d76f0ebb262dc944f4abdf903ae1fea7688de7a3183ae42a49/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461636b2532306f766572666c6f772d73656e7472792d677265656e2e737667)](http://stackoverflow.com/questions/tagged/sentry)
- [![Twitter Follow](https://camo.githubusercontent.com/330d3aac03f6697a8a0d188c891131e5e89ce6e0829bda396fe78c43f4ebcd56/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f67657473656e7472793f6c6162656c3d67657473656e747279267374796c653d736f6369616c)](https://twitter.com/intent/follow?screen_name=getsentry)

License
-------

[](#license)

Licensed under the MIT license, see [`LICENSE`](LICENSE)

###  Health Score

79

—

ExcellentBetter than 100% of packages

Maintenance92

Actively maintained with recent releases

Popularity75

Solid adoption and visibility

Community52

Growing community involvement

Maturity85

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~35 days

Recently: every ~20 days

Total

103

Last Release

84d ago

Major Versions

1.0.3 → 2.0.32018-06-01

2.3.0 → 3.0.0-beta12019-03-05

3.5.3 → 4.0.02021-01-19

3.5.x-dev → 4.1.22021-05-16

4.x-dev → 5.0.02024-04-09

PHP version history (5 changes)0.1.0PHP &gt;=5.2.4

0.2.0PHP &gt;=5.3.3

1.0PHP ^5.6|^7.0

2.0PHP ^7.1

4.0.0PHP ^7.2||^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/122e44894684040bbecb610a52805f7bfd3ee5f27e644183c10ffc73df23ee17?d=identicon)[zeeg](/maintainers/zeeg)

![](https://www.gravatar.com/avatar/fe5ccdddb1a96018b48de2d474f6d253228ab68304d3a5ebfbdccfc8f341e027?d=identicon)[HazAT](/maintainers/HazAT)

![](https://www.gravatar.com/avatar/073f050f44e9fae015e8f5beffbe0001382b62ed410998af6acb9665626b51e6?d=identicon)[Sentry](/maintainers/Sentry)

---

Top Contributors

[![Jean85](https://avatars.githubusercontent.com/u/6729988?v=4)](https://github.com/Jean85 "Jean85 (427 commits)")[![ste93cry](https://avatars.githubusercontent.com/u/1770485?v=4)](https://github.com/ste93cry "ste93cry (90 commits)")[![cleptric](https://avatars.githubusercontent.com/u/6617432?v=4)](https://github.com/cleptric "cleptric (68 commits)")[![dcramer](https://avatars.githubusercontent.com/u/23610?v=4)](https://github.com/dcramer "dcramer (54 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (38 commits)")[![Litarnus](https://avatars.githubusercontent.com/u/8436563?v=4)](https://github.com/Litarnus "Litarnus (34 commits)")[![getsentry-bot](https://avatars.githubusercontent.com/u/10587625?v=4)](https://github.com/getsentry-bot "getsentry-bot (28 commits)")[![stayallive](https://avatars.githubusercontent.com/u/1090754?v=4)](https://github.com/stayallive "stayallive (17 commits)")[![swquinn](https://avatars.githubusercontent.com/u/153358?v=4)](https://github.com/swquinn "swquinn (16 commits)")[![HazAT](https://avatars.githubusercontent.com/u/363802?v=4)](https://github.com/HazAT "HazAT (10 commits)")[![nocive](https://avatars.githubusercontent.com/u/651121?v=4)](https://github.com/nocive "nocive (9 commits)")[![stephanie-anderson](https://avatars.githubusercontent.com/u/7096858?v=4)](https://github.com/stephanie-anderson "stephanie-anderson (9 commits)")[![cklm](https://avatars.githubusercontent.com/u/466021?v=4)](https://github.com/cklm "cklm (8 commits)")[![Addvilz](https://avatars.githubusercontent.com/u/1390347?v=4)](https://github.com/Addvilz "Addvilz (7 commits)")[![garak](https://avatars.githubusercontent.com/u/179866?v=4)](https://github.com/garak "garak (5 commits)")[![alexander-schranz](https://avatars.githubusercontent.com/u/1698337?v=4)](https://github.com/alexander-schranz "alexander-schranz (5 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (5 commits)")[![HypeMC](https://avatars.githubusercontent.com/u/2445045?v=4)](https://github.com/HypeMC "HypeMC (4 commits)")[![michaelzangerle](https://avatars.githubusercontent.com/u/1465587?v=4)](https://github.com/michaelzangerle "michaelzangerle (4 commits)")[![rdohms](https://avatars.githubusercontent.com/u/94331?v=4)](https://github.com/rdohms "rdohms (4 commits)")

---

Tags

bundlehacktoberfestphpsdksentrysentry-clientsymfonysymfony-bundletag-productionteam-web-backendsymfonyloggingerrorssentry

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19562.3M1.3k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)

PHPackages © 2026

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