sentry/sentry

A PHP client for Sentry (http://getsentry.com)


README

68747470733a2f2f613077783539326376677a7269706a2e676c6f62616c2e73736c2e666173746c792e6e65742f5f7374617469632f66396334383563636462323534303935643363616335353532346461626130612f67657473656e7472792f696d616765732f6272616e64696e672f7376672f73656e7472792d686f72697a6f6e74616c2d626c61636b2e737667

Sentry for PHP

Build Status Total Downloads Downloads per month Latest stable version License Scrutinizer Code Quality Code Coverage

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.

Features

  • Automatically report (un)handled exceptions and errors
  • Send customized diagnostic data
  • Process and sanitize data before sending it over the network

Usage

// Instantiate a new client with a compatible DSN and install built-in
// handlers
$client = (new Raven_Client('http://public:secret@example.com/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.

Integration with frameworks

Other packages exists to integrate this SDK into the most common frameworks.

Community

Contributing

Dependencies are managed through composer:

$ composer install

Tests can then be run via phpunit:

$ vendor/bin/phpunit