Download the PHP package drewjoh/sentry without Composer
On this page you can find all versions of the php package drewjoh/sentry. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download drewjoh/sentry
More information about drewjoh/sentry
Files in drewjoh/sentry
Download drewjoh/sentry
More information about drewjoh/sentry
Files in drewjoh/sentry
Vendor drewjoh
Package sentry
Short Description A PHP wrapper for Sentry
License
Homepage http://github.com/drewjoh/Sentry
Package sentry
Short Description A PHP wrapper for Sentry
License
Homepage http://github.com/drewjoh/Sentry
Please rate this library. Is it a good library?
Informations about the package sentry
Sentry
This is a simple wrapper class for the raven-php experimental PHP client for Sentry.
I prefer the use of simple static methods throughout my app for things like logging. This wrapper makes that workable, instead of having to make an instance of the client when you need it.
Usage
// Setup our class, with optional persistent tags
Sentry::setDSN('{YOUR_DSN}', array('php_version' => phpversion()) );
// Capture a message
$event_id = Sentry::captureMessage('my log message');
// Capture an exception
$event_id = Sentry::captureException($exception);
// Capture with one time use tags
Sentry::tags(array('test_tag' => 'true'));
Sentry::captureMessage('Test message 3 from Sentry class');
// Give the user feedback
echo "Sorry, there was an error! Your reference ID is " . $event_id;
Installation
Install with Composer
If you're using Composer to manage dependencies, you can add Raven with it.
{
"require": {
"drewjoh/Sentry": ">=0.1.0"
}
}
All versions of sentry with dependencies
PHP Build Version
Package Version
The package drewjoh/sentry contains the following files
Loading the files please wait ....