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

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

rollbar/rollbar
===============

Monitors errors and exceptions and reports them to Rollbar

v4.2.1(1mo ago)33723.7M—9.2%118[9 issues](https://github.com/rollbar/rollbar-php/issues)20MITPHPPHP &gt;=8.1.0 &lt;9.0CI passing

Since Jan 22Pushed 1mo ago40 watchersCompare

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

READMEChangelog (10)Dependencies (14)Versions (97)Used By (20)

 [![rollbar-logo](https://user-images.githubusercontent.com/3300063/207964480-54eda665-d6fe-4527-ba51-b0ab3f41f10b.png)](https://user-images.githubusercontent.com/3300063/207964480-54eda665-d6fe-4527-ba51-b0ab3f41f10b.png)

Rollbar PHP SDK
===============

[](#rollbar-php-sdk)

 **Proactively discover, predict, and resolve errors in real-time with [Rollbar’s](https://rollbar.com) error monitoring platform. [Start tracking errors today](https://rollbar.com/signup/)!**

[![Latest Version on Packagist](https://camo.githubusercontent.com/fca397cdc27606f7d662f0824c35c7f27b5608860ca244939989f4127c0a87be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f6c6c6261722f726f6c6c6261722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rollbar/rollbar)[![CI for Rollbar-PHP, master](https://github.com/rollbar/rollbar-php/actions/workflows/ci.yml/badge.svg)](https://github.com/rollbar/rollbar-php/actions/workflows/ci.yml)[![Total Downloads](https://camo.githubusercontent.com/3d284793c8a5b2bb9b045982eb1802223f8a23927b7c4612efc554839fdbcd9d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f6c6c6261722f726f6c6c6261722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rollbar/rollbar)

---

Key benefits of using Rollbar PHP SDK are:
------------------------------------------

[](#key-benefits-of-using-rollbar-php-sdk-are)

- **Frameworks:** Rollbar php supports many popular php frameworks such as [Laravel](https://docs.rollbar.com/docs/laravel), [CodeIgniter](https://docs.rollbar.com/docs/codeigniter), [Symfony](https://docs.rollbar.com/docs/symfony) and many more!
- **Plugins:** Rollbar php has plugin support for [Heroku](https://docs.rollbar.com/docs/php-heroku), [Wordpress](https://docs.rollbar.com/docs/wordpress), [Rollbar.js](https://docs.rollbar.com/docs/php-integration-with-rollbarjs) and more.
- **Automatic error grouping:** Rollbar aggregates Occurrences caused by the same error into Items that represent application issues. [Learn more about reducing log noise](https://docs.rollbar.com/docs/grouping-occurrences).
- **Advanced search:** Filter items by many different properties. [Learn more about search](https://docs.rollbar.com/docs/search-items).
- **Customizable notifications:** Rollbar supports several messaging and incident management tools where your team can get notified about errors and important events by real-time alerts. [Learn more about Rollbar notifications](https://docs.rollbar.com/docs/notifications).

Quickstart
==========

[](#quickstart)

If you've never used Rollbar before, [sign up for a Rollbar account](https://rollbar.com/signup)and follow the simple, three-step tour. In no time, you'll be capturing errors and exceptions thrown in your code.

If you already have a Rollbar account, [log in to your Rollbar account](https://rollbar.com/login/). From the Settings &gt; Project Access Token menu, click Create New Access Token. Copy the `post_client_item` value and paste it into the code below.

```
require 'vendor/autoload.php'; // composer require rollbar/rollbar

\Rollbar\Rollbar::init([
    'access_token' => '***',
    'environment'  => 'development',
]);
```

For detailed usage instructions and configuration reference, refer to our [PHP SDK docs](https://docs.rollbar.com/docs/php).

Getting Help
============

[](#getting-help)

- If you have a question, ask in our [Discussion Q&amp;A](https://github.com/rollbar/rollbar-php/discussions/categories/q-a)
- To report a bug, raise [an issue](https://github.com/rollbar/rollbar-php/issues)
- For account service, reach out to

Releases, Versions, and PHP Compatibility
=========================================

[](#releases-versions-and-php-compatibility)

Major releases of this library support major versions of PHP, as follows:

- For PHP 8, choose the `4.x` or `3.x` branch.
- For PHP 7, choose a `2.x` release.
- For PHP 5, choose a `1.x` release.

To obtain a release, download an archive from the [Releases](https://github.com/rollbar/rollbar-php/releases) page or use composer:

```
# for PHP 8 compatibility
$ composer require rollbar/rollbar:^4
# or
$ composer require rollbar/rollbar:^3

# for PHP 7 compatibility
$ composer require rollbar/rollbar:^2

# for PHP 5 compatibility
$ composer require rollbar/rollbar:^1
```

Refer to [CHANGELOG.md](./CHANGELOG.md) for a complete history.

License
=======

[](#license)

Rollbar-PHP is free software released under the MIT License. See [LICENSE](./LICENSE)for details.

###  Health Score

80

—

ExcellentBetter than 100% of packages

Maintenance89

Actively maintained with recent releases

Popularity69

Solid adoption and visibility

Community52

Growing community involvement

Maturity97

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 51% 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 ~52 days

Recently: every ~86 days

Total

92

Last Release

52d ago

Major Versions

v0.18.2 → v1.0.0-beta2016-08-22

v1.8.1 → v2.0.02019-10-02

v2.1.0 → v3.0.0-RC12021-02-19

v3.1.4 → v4.0.0-beta2023-01-18

v1.8.2 → v4.0.12023-04-28

PHP version history (3 changes)v3.0.0-RC1PHP &gt;=8.0.0 &lt;9.0

v1.8.2PHP &gt;=5.5.0 &lt;7.0

v4.1.0-rcPHP &gt;=8.1.0 &lt;9.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12275?v=4)[Brian Rue](/maintainers/brianr)[@brianr](https://github.com/brianr)

![](https://avatars.githubusercontent.com/u/73399?v=4)[Walt Jones](/maintainers/waltjones)[@waltjones](https://github.com/waltjones)

![](https://www.gravatar.com/avatar/4332d2ff93950032d78da12ba7159f719b787bcd212c2e90c84ccc2dbf1a6c48?d=identicon)[danielmorell](/maintainers/danielmorell)

![](https://avatars.githubusercontent.com/u/571099?v=4)[Zack Davis](/maintainers/octopoda)[@octopoda](https://github.com/octopoda)

---

Top Contributors

[![ArturMoczulski](https://avatars.githubusercontent.com/u/2106631?v=4)](https://github.com/ArturMoczulski "ArturMoczulski (680 commits)")[![danielmorell](https://avatars.githubusercontent.com/u/25595393?v=4)](https://github.com/danielmorell "danielmorell (198 commits)")[![rokob](https://avatars.githubusercontent.com/u/831355?v=4)](https://github.com/rokob "rokob (154 commits)")[![brianr](https://avatars.githubusercontent.com/u/12275?v=4)](https://github.com/brianr "brianr (81 commits)")[![Crisfole](https://avatars.githubusercontent.com/u/413237?v=4)](https://github.com/Crisfole "Crisfole (62 commits)")[![icsahn-rollbar](https://avatars.githubusercontent.com/u/63812685?v=4)](https://github.com/icsahn-rollbar "icsahn-rollbar (18 commits)")[![sbezboro](https://avatars.githubusercontent.com/u/1294576?v=4)](https://github.com/sbezboro "sbezboro (18 commits)")[![coryvirok](https://avatars.githubusercontent.com/u/769323?v=4)](https://github.com/coryvirok "coryvirok (16 commits)")[![Chris8934](https://avatars.githubusercontent.com/u/44963939?v=4)](https://github.com/Chris8934 "Chris8934 (15 commits)")[![mrunalk](https://avatars.githubusercontent.com/u/1277166?v=4)](https://github.com/mrunalk "mrunalk (9 commits)")[![bxsx](https://avatars.githubusercontent.com/u/233652?v=4)](https://github.com/bxsx "bxsx (9 commits)")[![MichaelMackus](https://avatars.githubusercontent.com/u/737162?v=4)](https://github.com/MichaelMackus "MichaelMackus (8 commits)")[![vilius-g](https://avatars.githubusercontent.com/u/6215641?v=4)](https://github.com/vilius-g "vilius-g (7 commits)")[![rfink](https://avatars.githubusercontent.com/u/108414?v=4)](https://github.com/rfink "rfink (7 commits)")[![nekofar](https://avatars.githubusercontent.com/u/147401?v=4)](https://github.com/nekofar "nekofar (6 commits)")[![jasny](https://avatars.githubusercontent.com/u/100821?v=4)](https://github.com/jasny "jasny (5 commits)")[![bradacjan](https://avatars.githubusercontent.com/u/9573905?v=4)](https://github.com/bradacjan "bradacjan (5 commits)")[![strongwazz](https://avatars.githubusercontent.com/u/911315?v=4)](https://github.com/strongwazz "strongwazz (4 commits)")[![tanakahisateru](https://avatars.githubusercontent.com/u/403893?v=4)](https://github.com/tanakahisateru "tanakahisateru (4 commits)")[![jlesueur](https://avatars.githubusercontent.com/u/944916?v=4)](https://github.com/jlesueur "jlesueur (4 commits)")

---

Tags

codeignitercrash-reportcrash-reportingerror-handlererror-handlingerror-monitoringexceptionslaravelobservabilityphprollbarwordpressloggingmonitoringdebuggingerrorsexceptions

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.2M](/packages/honeybadger-io-honeybadger-laravel)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[bugsnag/bugsnag-laravel

Official Bugsnag notifier for Laravel applications.

90334.6M36](/packages/bugsnag-bugsnag-laravel)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[bugsnag/bugsnag

Official Bugsnag notifier for PHP applications.

56347.0M78](/packages/bugsnag-bugsnag)

PHPackages © 2026

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