PHPackages                             jenssegers/rollbar - 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. jenssegers/rollbar

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

jenssegers/rollbar
==================

Rollbar error monitoring integration for Laravel projects

v1.5.1(9y ago)3301.1M↓16%96[6 PRs](https://github.com/jenssegers/laravel-rollbar/pulls)2MITPHPPHP &gt;=5.4

Since Apr 27Pushed 5y ago11 watchersCompare

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

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

Laravel Rollbar
===============

[](#laravel-rollbar)

[![Build Status](https://camo.githubusercontent.com/393712fe32544e2734e7bd7e4c56dfff9d59ded3ce2bebb6da462ebd5d66bf8a/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f6a656e737365676572732f6c61726176656c2d726f6c6c6261722e737667)](https://travis-ci.org/jenssegers/laravel-rollbar) [![Coverage Status](https://camo.githubusercontent.com/7418049136aa42348b9a3df4a5d115406db0dc6bcec74838cc6c337c1c09b1f0/687474703a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6a656e737365676572732f6c61726176656c2d726f6c6c6261722e737667)](https://coveralls.io/r/jenssegers/laravel-rollbar)

Rollbar error monitoring integration for Laravel projects. This library adds a listener to Laravel's logging component. Laravel's session information will be sent in to Rollbar, as well as some other helpful information such as 'environment', 'server', and 'session'.

[![rollbar](https://camo.githubusercontent.com/f2805a168cb3979332008657278f76c9dbb3d007899e2f5c533c6df9ab84baf7/68747470733a2f2f64333767767276633077743473312e636c6f756466726f6e742e6e65742f7374617469632f696d672f66656174757265732d64617368626f617264312e706e673f74733d31333631393037393035)](https://camo.githubusercontent.com/f2805a168cb3979332008657278f76c9dbb3d007899e2f5c533c6df9ab84baf7/68747470733a2f2f64333767767276633077743473312e636c6f756466726f6e742e6e65742f7374617469632f696d672f66656174757265732d64617368626f617264312e706e673f74733d31333631393037393035)

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

[](#installation)

Install using composer:

```
composer require jenssegers/rollbar

```

Add the service provider to the `'providers'` array in `config/app.php`:

```
Jenssegers\Rollbar\RollbarServiceProvider::class,
```

If you only want to enable Rollbar reporting for certain environments you can conditionally load the service provider in your `AppServiceProvider`:

```
    public function register()
    {
        if ($this->app->environment('production')) {
            $this->app->register(\Jenssegers\Rollbar\RollbarServiceProvider::class);
        }
    }
```

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

[](#configuration)

This package supports configuration through the services configuration file located in `config/services.php`. All configuration variables will be directly passed to Rollbar:

```
'rollbar' => [
    'access_token' => env('ROLLBAR_TOKEN'),
    'level' => env('ROLLBAR_LEVEL'),
],
```

The level variable defines the minimum log level at which log messages are sent to Rollbar. For development you could set this either to `debug` to send all log messages, or to `none` to sent no messages at all. For production you could set this to `error` so that all info and debug messages are ignored.

Usage
-----

[](#usage)

To automatically monitor exceptions, simply use the `Log` facade in your error handler in `app/Exceptions/Handler.php`:

```
public function report(Exception $exception)
{
    \Log::error($exception); //rollbar
    parent::report($exception);
}
```

For Laravel 4 installations, this is located in `app/start/global.php`:

```
App::error(function(Exception $exception, $code)
{
    Log::error($exception);
});
```

Your other log messages will also be sent to Rollbar:

```
\Log::debug('Here is some debug information');
```

*NOTE*: Fatal exceptions will always be sent to Rollbar.

### Context informaton

[](#context-informaton)

You can pass user information as context like this:

```
\Log::error('Something went wrong', [
    'person' => ['id' => 123, 'username' => 'John Doe', 'email' => 'john@doe.com']
]);
```

Or pass some extra information:

```
\Log::warning('Something went wrong', [
    'download_size' => 3432425235
]);
```

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity56

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 76.9% 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 ~59 days

Recently: every ~149 days

Total

18

Last Release

3401d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.3

v1.4.5PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/91980fbd02c3e65e0b2ec1c65e4ca0131f1bbc3929a0a11a7f4f12db5f2036e3?d=identicon)[jenssegers](/maintainers/jenssegers)

---

Top Contributors

[![jenssegers](https://avatars.githubusercontent.com/u/194377?v=4)](https://github.com/jenssegers "jenssegers (80 commits)")[![DougSisk](https://avatars.githubusercontent.com/u/70512?v=4)](https://github.com/DougSisk "DougSisk (6 commits)")[![throck95](https://avatars.githubusercontent.com/u/13982974?v=4)](https://github.com/throck95 "throck95 (3 commits)")[![bkuhl](https://avatars.githubusercontent.com/u/524933?v=4)](https://github.com/bkuhl "bkuhl (2 commits)")[![jnbn](https://avatars.githubusercontent.com/u/112425?v=4)](https://github.com/jnbn "jnbn (2 commits)")[![cyrrill](https://avatars.githubusercontent.com/u/2376084?v=4)](https://github.com/cyrrill "cyrrill (1 commits)")[![brianr](https://avatars.githubusercontent.com/u/12275?v=4)](https://github.com/brianr "brianr (1 commits)")[![ILM126](https://avatars.githubusercontent.com/u/7699696?v=4)](https://github.com/ILM126 "ILM126 (1 commits)")[![lowerends](https://avatars.githubusercontent.com/u/6588791?v=4)](https://github.com/lowerends "lowerends (1 commits)")[![lucasmpb](https://avatars.githubusercontent.com/u/713024?v=4)](https://github.com/lucasmpb "lucasmpb (1 commits)")[![Omranic](https://avatars.githubusercontent.com/u/406705?v=4)](https://github.com/Omranic "Omranic (1 commits)")[![potsky](https://avatars.githubusercontent.com/u/408237?v=4)](https://github.com/potsky "potsky (1 commits)")[![sdebacker](https://avatars.githubusercontent.com/u/134503?v=4)](https://github.com/sdebacker "sdebacker (1 commits)")[![charles-rumley](https://avatars.githubusercontent.com/u/8379704?v=4)](https://github.com/charles-rumley "charles-rumley (1 commits)")[![antonioribeiro](https://avatars.githubusercontent.com/u/3182864?v=4)](https://github.com/antonioribeiro "antonioribeiro (1 commits)")[![chuprik](https://avatars.githubusercontent.com/u/802946?v=4)](https://github.com/chuprik "chuprik (1 commits)")

---

Tags

laravelloggingmonitoringerrorrollbar

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jenssegers-rollbar/health.svg)

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

###  Alternatives

[rollbar/rollbar-laravel

Rollbar error monitoring integration for Laravel projects

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

Sentry (Raven) error monitoring integration for Laravel projects

90197.2k1](/packages/jenssegers-raven)[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)

PHPackages © 2026

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