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

Abandoned → [rollbar/rollbar-laravel](/?search=rollbar%2Frollbar-laravel)ArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

captbrogers/laravel-rollbar
===========================

Rollbar error monitoring integration for Laravel 5.4 projects

v2.0.2(8y ago)05.9kMITPHPPHP &gt;=7.0

Since Apr 27Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (6)Versions (24)Used By (0)

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

[](#laravel-rollbar)

[![Build Status](https://camo.githubusercontent.com/b1b6880618aa4736e4083de3be3ac9699cd2f350dd916fd8191e1e92b59349bb/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6361707462726f676572732f6c61726176656c2d726f6c6c6261722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/captbrogers/laravel-rollbar) [![Coverage Status](https://camo.githubusercontent.com/90658e63a9837870de0f2bee79800e64c886c4fd15531d4ea07178d1537ce372/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6361707462726f676572732f6c61726176656c2d726f6c6c6261722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/captbrogers/laravel-rollbar?branch=master)

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 captbrogers/rollbar
```

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

```
Captbrogers\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(\Captbrogers\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

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 69.6% 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 ~55 days

Recently: every ~41 days

Total

22

Last Release

3276d ago

Major Versions

v1.5.2 → v2.0.02017-07-05

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

v1.4.5PHP &gt;=5.4

v2.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/510171dcd64a10158884a8789215cb0fa68ccce4d819b9359b8ffb80fc4fd550?d=identicon)[captbrogers](/maintainers/captbrogers)

---

Top Contributors

[![jenssegers](https://avatars.githubusercontent.com/u/194377?v=4)](https://github.com/jenssegers "jenssegers (80 commits)")[![kylobrogers](https://avatars.githubusercontent.com/u/20823588?v=4)](https://github.com/kylobrogers "kylobrogers (7 commits)")[![DougSisk](https://avatars.githubusercontent.com/u/70512?v=4)](https://github.com/DougSisk "DougSisk (6 commits)")[![captbrogers](https://avatars.githubusercontent.com/u/1094989?v=4)](https://github.com/captbrogers "captbrogers (4 commits)")[![throck95](https://avatars.githubusercontent.com/u/13982974?v=4)](https://github.com/throck95 "throck95 (3 commits)")[![jnbn](https://avatars.githubusercontent.com/u/112425?v=4)](https://github.com/jnbn "jnbn (2 commits)")[![bkuhl](https://avatars.githubusercontent.com/u/524933?v=4)](https://github.com/bkuhl "bkuhl (2 commits)")[![charles-rumley](https://avatars.githubusercontent.com/u/8379704?v=4)](https://github.com/charles-rumley "charles-rumley (1 commits)")[![ILM126](https://avatars.githubusercontent.com/u/7699696?v=4)](https://github.com/ILM126 "ILM126 (1 commits)")[![brianr](https://avatars.githubusercontent.com/u/12275?v=4)](https://github.com/brianr "brianr (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)")[![chuprik](https://avatars.githubusercontent.com/u/802946?v=4)](https://github.com/chuprik "chuprik (1 commits)")[![antonioribeiro](https://avatars.githubusercontent.com/u/3182864?v=4)](https://github.com/antonioribeiro "antonioribeiro (1 commits)")[![cyrrill](https://avatars.githubusercontent.com/u/2376084?v=4)](https://github.com/cyrrill "cyrrill (1 commits)")

---

Tags

error-reportinglogginglogging-libraryphpphp-librarylaravelloggingmonitoringerrorrollbar

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[rollbar/rollbar-laravel

Rollbar error monitoring integration for Laravel projects

14110.7M10](/packages/rollbar-rollbar-laravel)[jenssegers/rollbar

Rollbar error monitoring integration for Laravel projects

3241.1M2](/packages/jenssegers-rollbar)[jenssegers/raven

Sentry (Raven) error monitoring integration for Laravel projects

90197.3k1](/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

26927.9k](/packages/saasscaleup-laravel-log-alarm)[spatie/laravel-flare

Send Laravel errors to Flare

111.2M6](/packages/spatie-laravel-flare)[twineis/raven-php

Sentry (Raven) error monitoring for Laravel and Lumen with send in background via queues

1018.1k](/packages/twineis-raven-php)

PHPackages © 2026

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