sentry/sentry-symfony
Symfony integration for Sentry (http://getsentry.com)
Package info
github.com/getsentry/sentry-symfony
Type:symfony-bundle
pkg:composer/sentry/sentry-symfony
Requires
- php: ^7.2||^8.0
- guzzlehttp/psr7: ^2.1.1
- jean85/pretty-package-versions: ^1.5||^2.0
- sentry/sentry: ^4.23.0
- symfony/cache-contracts: ^1.1||^2.4||^3.0
- symfony/config: ^4.4.20||^5.0.11||^6.0||^7.0||^8.0
- symfony/console: ^4.4.20||^5.0.11||^6.0||^7.0||^8.0
- symfony/dependency-injection: ^4.4.20||^5.0.11||^6.0||^7.0||^8.0
- symfony/event-dispatcher: ^4.4.20||^5.0.11||^6.0||^7.0||^8.0
- symfony/http-kernel: ^4.4.20||^5.0.11||^6.0||^7.0||^8.0
- symfony/polyfill-php80: ^1.22
- symfony/psr-http-message-bridge: ^1.2||^2.0||^6.4||^7.0||^8.0
- symfony/yaml: ^4.4.20||^5.0.11||^6.0||^7.0||^8.0
Requires (Dev)
- doctrine/dbal: ^2.13||^3.3||^4.0
- doctrine/doctrine-bundle: ^2.6||^3.0
- friendsofphp/php-cs-fixer: ^2.19||^3.40
- masterminds/html5: ^2.8
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: 1.12.5
- phpstan/phpstan-phpunit: 1.4.0
- phpstan/phpstan-symfony: 1.4.10
- phpunit/phpunit: ^8.5.40||^9.6.21
- symfony/browser-kit: ^4.4.20||^5.0.11||^6.0||^7.0||^8.0
- symfony/cache: ^4.4.20||^5.0.11||^6.0||^7.0||^8.0
- symfony/dom-crawler: ^4.4.20||^5.0.11||^6.0||^7.0||^8.0
- symfony/framework-bundle: ^4.4.20||^5.0.11||^6.0||^7.0||^8.0
- symfony/http-client: ^4.4.20||^5.0.11||^6.0||^7.0||^8.0
- symfony/messenger: ^4.4.20||^5.0.11||^6.0||^7.0||^8.0
- symfony/monolog-bundle: ^3.4||^4.0
- symfony/phpunit-bridge: ^5.2.6||^6.0||^7.0||^8.0
- symfony/process: ^4.4.20||^5.0.11||^6.0||^7.0||^8.0
- symfony/security-core: ^4.4.20||^5.0.11||^6.0||^7.0||^8.0
- symfony/security-http: ^4.4.20||^5.0.11||^6.0||^7.0||^8.0
- symfony/twig-bundle: ^4.4.20||^5.0.11||^6.0||^7.0||^8.0
- vimeo/psalm: ^4.3||^5.16.0
Suggests
- doctrine/doctrine-bundle: Allow distributed tracing of database queries using Sentry.
- monolog/monolog: Allow sending log messages to Sentry by using the included Monolog handler.
- symfony/cache: Allow distributed tracing of cache pools using Sentry.
- symfony/twig-bundle: Allow distributed tracing of Twig template rendering using Sentry.
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-06-03 11:05:13 UTC
README
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
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!
👁 ImageGetting 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
License
Licensed under the MIT license, see LICENSE
