PHPackages                             brightlocal/php-airbrake - 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. brightlocal/php-airbrake

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

brightlocal/php-airbrake
========================

A PHP 5.3 library for sending errors to the Airbrake.io service.

035.5kPHP

Since Sep 8Pushed 10y ago27 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Airbrake
============

[](#php-airbrake)

A PHP module to make use of the [Airbrake API](http://help.airbrake.io/kb/api-2/api-overview) for storing error messages. This is based loosely on the [official Ruby implementation](https://github.com/airbrake/airbrake) from the Airbrake team.

Installation
============

[](#installation)

The best way to install the library is by using [Composer](http://getcomposer.org). Add the following to `composer.json` in the root of your project:

```
{
  "require": {
    "brightlocal/php-airbrake": "dev-master"
  }
}
```

Then, on the command line:

```
curl -s http://getcomposer.org/installer | php
php composer.phar install
```

Use the generated `vendor/autoload.php` file to autoload the library classes.

Exception Handler Example
=========================

[](#exception-handler-example)

The preferred method for this to be used is via error and exception handlers, so that you do not have to manually call the configuration and client class every time. This is simply done by calling up the built in error handler and passing in your API key to its start() method like so:

```
