getsentry/sentry-symfony

The official Symfony SDK for Sentry (sentry.io)

737

stars

1,007

commits

PHP

primary language

Sep 4, 2026

updated

sentry.io
bundle
hacktoberfest
php
sdk
sentry
sentry-client
symfony
symfony-bundle
tag-production
team-web-backend

README

Sentry

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

Official Sentry SDK for Symfony

Stable release License Total Downloads Monthly Downloads

CI Coverage Status Discord X Follow

This is the official Symfony SDK for Sentry.

Getting Started

Install

Install the SDK using Composer.

composer require sentry/sentry-symfony

Configure

Add the Sentry DSN to your .env file.

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

Usage

use function Sentry\captureException;

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

Contributing to the SDK

Please refer to CONTRIBUTING.md.

Thanks to all the people who contributed so far!

Getting help/support

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. There is a ton of great people in our Discord community ready to help you!

Resources

  • Documentation
  • Discord
  • Stack Overflow
  • Twitter Follow

License

Licensed under the MIT license, see LICENSE

Contributors

(top 30 of 121)

Jean85

427 commits

ste93cry

90 commits

cleptric

68 commits

dcramer

54 commits

getsentry/sentry-symfony

The official Symfony SDK for Sentry (sentry.io)

737

stars

1,007

commits

PHP

primary language

Sep 4, 2026

updated

sentry.io
bundle
hacktoberfest
php
sdk
sentry
sentry-client
symfony
symfony-bundle
tag-production
team-web-backend

README

Sentry

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

Official Sentry SDK for Symfony

Stable release License Total Downloads Monthly Downloads

CI Coverage Status Discord X Follow

This is the official Symfony SDK for Sentry.

Getting Started

Install

Install the SDK using Composer.

composer require sentry/sentry-symfony

Configure

Add the Sentry DSN to your .env file.

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

Usage

use function Sentry\captureException;

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

Contributing to the SDK

Please refer to CONTRIBUTING.md.

Thanks to all the people who contributed so far!

Getting help/support

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. There is a ton of great people in our Discord community ready to help you!

Resources

  • Documentation
  • Discord
  • Stack Overflow
  • Twitter Follow

License

Licensed under the MIT license, see LICENSE

Contributors

(top 30 of 121)

Jean85

427 commits

ste93cry

90 commits

cleptric

68 commits

dcramer

54 commits

Languages

PHP

99.9%