The Sentry PHP error reporter tracks errors and exceptions that happen during the execution of your application and provides instant notification with detailed informations needed to prioritize, identify, reproduce and fix each issue. Learn more about automatic PHP error reporting with Sentry.
- Automatically report (un)handled exceptions and errors
- Send customized diagnostic data
- Process and sanitize data before sending it over the network
// Instantiate a new client with a compatible DSN and install built-in
// handlers
$client = (new Raven_Client('http://public:[email protected]/1'))->install();
// Capture an exception
$event_id = $client->captureException($ex);
// Give the user feedback
echo "Sorry, there was an error!";
echo "Your reference ID is " . $event_id;
For more information, see our documentation.
Other packages exists to integrate this SDK into the most common frameworks.
- Documentation
- Bug Tracker
- Code
- Mailing List
- IRC (irc.freenode.net, #sentry)
Dependencies are managed through composer:
$ composer install
Tests can then be run via phpunit:
$ vendor/bin/phpunit