PHPackages                             n-coders-dev/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. n-coders-dev/php-airbrake

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

n-coders-dev/php-airbrake
=========================

A PHP 5.3 library for sending errors to the Airbrake.io service. Fork from https://github.com/dbtlr/php-airbrake

v1.1.4(11y ago)073MITPHP

Since Sep 25Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (9)Used By (0)

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:

```
