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

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

ibrows/php-airbrake
===================

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

1.1.5(10y ago)011.8k[2 PRs](https://github.com/ibrows/php-airbrake/pulls)1MIT

Since Jul 5Compare

[ Source](https://github.com/ibrows/php-airbrake)[ Packagist](https://packagist.org/packages/ibrows/php-airbrake)[ Docs](https://github.com/dbtlr/php-airbrake)[ RSS](/packages/ibrows-php-airbrake/feed)WikiDiscussions Synced 2d ago

READMEChangelogDependencies (2)Versions (18)Used By (1)

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

[](#php-airbrake)

[![Build Status](https://camo.githubusercontent.com/0d76a0b6f05c4685dc74d5f44948abbeb40cae884a1717d9489b1de7c5888c79/68747470733a2f2f7472617669732d63692e6f72672f6462746c722f7068702d6169726272616b652e737667)](https://travis-ci.org/dbtlr/php-airbrake)[![HHVM Status](https://camo.githubusercontent.com/56b4307baf111fbaba64a4e1c5545b5d2b4a930cd6750c8b90924683d0d3618a/687474703a2f2f6868766d2e683463632e64652f62616467652f6462746c722f7068702d6169726272616b652e737667)](http://hhvm.h4cc.de/package/dbtlr/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.

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": {
    "dbtlr/php-airbrake": "~1.1"
  }
}
```

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:

```
