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

Abandoned → [dbtlr/php-airbrake](/?search=dbtlr%2Fphp-airbrake)Library[Logging &amp; Monitoring](/categories/logging)

nodrew/php-airbrake
===================

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

1.1.5(7y ago)12121.7k421MITPHP

Since Sep 25Pushed 7y ago5 watchersCompare

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

READMEChangelog (8)Dependencies (2)Versions (10)Used By (1)

PHP Airbrake (Deprecated)
=========================

[](#php-airbrake-deprecated)

[![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.

Please Read This First
----------------------

[](#please-read-this-first)

> I built this package years ago, when the only official support Airbrake had was with Ruby, the language they used themselves. As of today though, I have not personally used the Airbrake service in going on 4-years. While this repository does still get the occasional update when a bug is reported, I don't have the time, energy, nor the desire to maintain this package any longer.
>
> **Going forward, if you're just finding this package, I highly suggest you make use of the [official Airbrake package](https://github.com/airbrake/phpbrake).** It is receiving updates and support directly from Airbrake themselves, which will ensure that your project continues to run in the safest way possible.
>
> I completely understand that there are many, many people still using this package. Since updating your code to use a new package, with likely a new way of doing things, can be difficult to do, I will continue to accept pull-requests and patches from the community until I have reason to believe this package is no longer widely used.
>
> However, consider yourself warned, **this package officially deprecated.**

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:

```
