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
This is the official Symfony SDK for Sentry.
Install the SDK using Composer.
composer require sentry/sentry-symfony
Add the Sentry DSN to your .env
file.
###> sentry/sentry-symfony ###
SENTRY_DSN="https://public@sentry.example.com/1"
###< sentry/sentry-symfony ###
use function Sentry\captureException;
try {
$this->functionThatMayFail();
} catch (\Throwable $exception) {
captureException($exception);
}
Please refer to CONTRIBUTING.md.
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!
Licensed under the MIT license, see LICENSE