2017 © Pedro Peláez
 

library sentry

A PHP wrapper for Sentry

image

drewjoh/sentry

A PHP wrapper for Sentry

  • Tuesday, November 20, 2012
  • by drewjoh
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Sentry

This is a simple wrapper class for the raven-php experimental PHP client for Sentry., (*1)

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., (*2)

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, (*3)

If you're using Composer to manage dependencies, you can add Raven with it., (*4)

{
    "require": {
        "drewjoh/Sentry": ">=0.1.0"
    }
}

The Versions

20/11 2012

dev-master

9999999-dev http://github.com/drewjoh/Sentry

A PHP wrapper for Sentry

  Sources   Download

The Requires

 

by Drew Johnston

log logging

20/11 2012

0.2.0

0.2.0.0 http://github.com/drewjoh/Sentry

A PHP wrapper for Sentry

  Sources   Download

The Requires

 

by Drew Johnston

log logging

26/10 2012

0.1.0

0.1.0.0 http://github.com/drewjoh/Sentry

A PHP wrapper for Sentry

  Sources   Download

The Requires

 

by Drew Johnston

log logging