Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

PHP client for sentry

tree: b995df5784

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.rst

raven-php

raven-php is an experimental PHP client for Sentry.

// Register the autoloader
require('/path/to/Raven/Autoloader.php');
Raven_Autoloader::register();

// Instantiate a new client with a compatible DSN
$client = new Raven_Client('http://public:secret@example.com/1');

// Capture a message
$event_id = $client->getIdent($client->message('my log message'));

// Capture an exception
$event_id = $client->getIdent($client->exception($ex));

// Give the user feedback
echo "Sorry, there was an error!";
echo "Your reference ID is " . $event_id;

Resources

Something went wrong with that request. Please try again.