Need help with rollbar-php?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

297 Stars 105 Forks MIT License 1.4K Commits 36 Opened issues


Error tracking and logging from PHP to Rollbar

Services available


Need anything else?

Contributors list


Latest Version on Packagist Build Status Total Downloads

This library detects errors and exceptions in your application and sends them to Rollbar for alerts, reporting, and analysis.


If you've never used Rollbar before, sign up for a Rollbar account 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. From the Settings > Project Access Token menu, click Create New Access Token. Copy the

value and paste it into the code below.
require 'vendor/autoload.php'; // composer require rollbar/rollbar:^2

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

For detailed usage instructions and configuration reference, refer to our PHP SDK docs.

Getting Help

Releases, Versions, and PHP Compatibility

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

  • For PHP 8, choose the
  • For PHP 7, choose a
  • For PHP 5, choose a

To obtain a release, download an archive from the Releases page or use composer:

# for PHP 8 compatibility
$ composer require rollbar/rollbar-php:dev-master

for PHP 7 compatibility

$ composer require rollbar/rollbar-php:^2

for PHP 5 compatibility

$ composer require rollbar/rollbar-php:^1

Refer to for a complete history.


Rollbar-PHP is free software released under the MIT License. See LICENSE for details.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.