Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

getsentry/raven-php-old

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Packages

No packages published

Languages

  • PHP 100.0%