PHPackages                             clowdy/laravel-raven - 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. clowdy/laravel-raven

Abandoned → [twineis/raven-php](/?search=twineis%2Fraven-php)Library[Logging &amp; Monitoring](/categories/logging)

clowdy/laravel-raven
====================

Sentry (Raven) error monitoring for Laravel with send in background

2.1.7(10y ago)1791.2k2MITPHPPHP &gt;=5.5.9

Since Aug 28Pushed 2y ago5 watchersCompare

[ Source](https://github.com/clowdy/laravel-raven)[ Packagist](https://packagist.org/packages/clowdy/laravel-raven)[ RSS](/packages/clowdy-laravel-raven/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (19)Used By (0)

Abandoned use [twineis/raven-php](https://github.com/twineis/raven-php) instead
===============================================================================

[](#abandoned-use-twineisraven-php-instead)

> Laravel Raven Sentry (Raven) error monitoring for Laravel 4 &amp; 5 with send in background using queues

[![Build Status](https://camo.githubusercontent.com/2a78acd6dafdf5a919a62eb7259cb73745591f9c25521642e0b5702fb9a1e1f7/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f636c6f7764792f6c61726176656c2d726176656e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/clowdy/laravel-raven)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/267a38222aa4b56b49ff1bd690d8dc3919f61ac726f631d9383f570309b7f962/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f636c6f7764792f6c61726176656c2d726176656e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/clowdy/laravel-raven/)[![Coverage Status](https://camo.githubusercontent.com/0fd474cc999a381f3e93d63456dc3ceb865f1909de2f0574a52ab8a0296b1ca4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f636c6f7764792f6c61726176656c2d726176656e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/clowdy/laravel-raven/code-structure/master)[![License](https://camo.githubusercontent.com/30597ff9a350144f03bffdd9183e16468e0b3ca1193e1d08591d992622738d55/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](http://www.opensource.org/licenses/MIT)[![Latest Version](https://camo.githubusercontent.com/2ceccf28bfc12d17ac9557c91d6b1fdade924fc6abf50abfebd306d23516b187/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c6f7764792f6c61726176656c2d726176656e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/clowdy/laravel-raven)[![Total Downloads](https://camo.githubusercontent.com/7f8e91afc9bc7cca76a35a80595a95fb21de3d17e8771a350c51b3dd67edbdf8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c6f7764792f6c61726176656c2d726176656e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/clowdy/laravel-raven)

Sentry (Raven) error monitoring for Laravel 5 with send in background using queues. This will add a listener to Laravel's existing log system. It makes use to Laravel's queues to push messages into the background without slowing down the application.

[![rollbar](https://camo.githubusercontent.com/e111533d2a1d538e59caa9df9ac3319447ddb9f128ad393531d46b02743ab714/68747470733a2f2f7777772e67657473656e7472792e636f6d2f5f7374617469632f67657473656e7472792f696d616765732f6865726f2e706e67)](https://camo.githubusercontent.com/e111533d2a1d538e59caa9df9ac3319447ddb9f128ad393531d46b02743ab714/68747470733a2f2f7777772e67657473656e7472792e636f6d2f5f7374617469632f67657473656e7472792f696d616765732f6865726f2e706e67)

Installation
------------

[](#installation)

Add the package to your `composer.json` and run `composer update`.

```
{
    "require": {
        "clowdy/laravel-raven": "2.1.*"
    }
}
```

Add the service provider in `config/app.php`:

```
Clowdy\Raven\RavenServiceProvider::class,
```

Register the Raven alias:

```
'Raven' => Clowdy\Raven\Facades\Raven::class,
```

### Looking for a Laravel 4 compatible version?

[](#looking-for-a-laravel-4-compatible-version)

Checkout the [1.0 branch](https://github.com/clowdy/laravel-raven/tree/1.0)

Configuration
-------------

[](#configuration)

Publish the included configuration file:

```
$ php artisan vendor:publish
```

Change the Sentry DSN by using the `RAVEN_DSN` env variable or changing the config file:

```
RAVEN_DSN=your-raven-dsn
```

This library uses the queue system, make sure your `config/queue.php` file is configured correctly. You can also specify the connection and the queue to use in the raven config. The connection and queue must exist in `config/queue.php`. These can be set using the `RAVEN_QUEUE_CONNECTION` for connection and `RAVEN_QUEUE_NAME` for the queue.

```
RAVEN_QUEUE_CONNECTION=redis
RAVEN_QUEUE_NAME=error
```

**The job data can be quite large, ensure you are using a queue that can support large data sets like `redis` or `sqs`**. If the job fails to add into the queue, it will be sent directly to sentry, slowing down the request, so its not lost.

Usage
-----

[](#usage)

To monitor exceptions, simply use the `Log` facade or helper:

```
Log::error($exception);

// or

logger()->error($exception);
```

You can change the logs used by changing the log level in the config by modifying the env var.

```
RAVEN_LEVEL=error
```

### Event Id

[](#event-id)

There is a method to get the **latest** event id so it can be used on things like the error page.

```
Raven::getLastEventId();
```

### Context information

[](#context-information)

You can pass additional information as context like this:

```
Log::error('Oops, Something went wrong', [
    'user' => ['name' => $user->name, 'email' => $user->email]
]);
```

User data can alternatively be added to the context of any messages sent via a processor, such as the included `UserDataProcessor`; see below.

#### Included optional processors

[](#included-optional-processors)

##### `UserDataProcessor`

[](#userdataprocessor)

This processor attaches data about the current user to the error report.

```
'processors' => [
    Clowdy\Raven\Processors\UserDataProcessor::class,
],
```

Or, to configure the `UserDataProcessor` object:

```
'processors' => [
    new Clowdy\Raven\Processors\UserDataProcessor([
        'only' => ['id', 'username', 'email'], // This is ['id'] by default; pass [] or null to include all fields
        'appends' => ['normallyHiddenProperty'],
    ]),
],
```

See the `UserDataProcessor` source for full details.

##### `LocaleProcessor`

[](#localeprocessor)

This processor attaches to the error report the current application locale as a tag.

```
'processors' => [
    Clowdy\Raven\Processors\LocaleProcessor::class,
],
```

Credits
-------

[](#credits)

This package was inspired [rcrowe/Raven](https://github.com/rcrowe/Raven).

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 77.4% of commits — single point of failure

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 ~31 days

Recently: every ~19 days

Total

18

Last Release

3738d ago

Major Versions

0.2.2 → 1.0.02015-02-20

1.0.0 → 2.0.02015-02-23

1.0.x-dev → 2.1.02015-12-01

PHP version history (2 changes)0.1.0PHP &gt;=5.4

2.1.0PHP &gt;=5.5.9

### Community

Maintainers

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

---

Top Contributors

[![pulkitjalan](https://avatars.githubusercontent.com/u/4124930?v=4)](https://github.com/pulkitjalan "pulkitjalan (48 commits)")[![tremby](https://avatars.githubusercontent.com/u/199635?v=4)](https://github.com/tremby "tremby (11 commits)")[![sambenskin](https://avatars.githubusercontent.com/u/1180089?v=4)](https://github.com/sambenskin "sambenskin (1 commits)")[![threesquared](https://avatars.githubusercontent.com/u/892142?v=4)](https://github.com/threesquared "threesquared (1 commits)")[![tymondesigns](https://avatars.githubusercontent.com/u/1801923?v=4)](https://github.com/tymondesigns "tymondesigns (1 commits)")

---

Tags

laravelloggingmonitoringerrorsentryravengetsentry

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/clowdy-laravel-raven/health.svg)

```
[![Health](https://phpackages.com/badges/clowdy-laravel-raven/health.svg)](https://phpackages.com/packages/clowdy-laravel-raven)
```

###  Alternatives

[jenssegers/raven

Sentry (Raven) error monitoring integration for Laravel projects

92197.2k1](/packages/jenssegers-raven)[sentry/sentry-laravel

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

1.3k114.3M154](/packages/sentry-sentry-laravel)[rollbar/rollbar-laravel

Rollbar error monitoring integration for Laravel projects

14110.4M7](/packages/rollbar-rollbar-laravel)[jenssegers/rollbar

Rollbar error monitoring integration for Laravel projects

3301.1M2](/packages/jenssegers-rollbar)[saasscaleup/laravel-log-alarm

Laravel log Alarm help you to set up alarm when errors occur in your system and send you a notification via Slack and email

27025.0k](/packages/saasscaleup-laravel-log-alarm)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

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