PHPackages                             drewjoh/sentry - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. drewjoh/sentry

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

drewjoh/sentry
==============

A PHP wrapper for Sentry

0.2.0(13y ago)020PHPPHP &gt;=5.3.0

Since Oct 26Pushed 13y ago1 watchersCompare

[ Source](https://github.com/drewjoh/Sentry)[ Packagist](https://packagist.org/packages/drewjoh/sentry)[ Docs](http://github.com/drewjoh/Sentry)[ RSS](/packages/drewjoh-sentry/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Sentry
======

[](#sentry)

This is a simple wrapper class for the raven-php experimental PHP client for [Sentry](http://getsentry.com).

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
-----

[](#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
------------

[](#installation)

Install with Composer

If you're using [Composer](https://github.com/composer/composer) to manage dependencies, you can add Raven with it.

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

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~25 days

Total

2

Last Release

4922d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b14c7bb8009763d645c1e743a204b5c274ac665112f4ba85288a15c2d78ab9ca?d=identicon)[drewjoh](/maintainers/drewjoh)

---

Tags

loglogging

### Embed Badge

![Health badge](/badges/drewjoh-sentry/health.svg)

```
[![Health](https://phpackages.com/badges/drewjoh-sentry/health.svg)](https://phpackages.com/packages/drewjoh-sentry)
```

###  Alternatives

[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k964.9M7.0k](/packages/monolog-monolog)[symfony/monolog-bundle

Symfony MonologBundle

2.9k249.1M1.6k](/packages/symfony-monolog-bundle)[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k227.1M273](/packages/sentry-sentry)[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)[rap2hpoutre/laravel-log-viewer

A Laravel log reader

3.2k14.7M71](/packages/rap2hpoutre-laravel-log-viewer)[sentry/sdk

This is a meta package of sentry/sentry. We recommend using sentry/sentry directly.

327134.8M151](/packages/sentry-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
