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

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

errbit/errbit-php
=================

Logging for PHP 5.3

15.8k15PHP

Since Nov 26Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/6665ed2dcec39bd1b1d66d5f20ce8016b69ef10329dc19f88b4314c77d6f45ff/68747470733a2f2f706f7365722e707567782e6f72672f6572726269742f6572726269742d7068702f762f737461626c652e737667)](https://packagist.org/packages/errbit/errbit-php) [![Total Downloads](https://camo.githubusercontent.com/5a03444bc13b250cb1ab422380aaef6fec9c8e9815973ddc3fe3ecec8ea0eca2/68747470733a2f2f706f7365722e707567782e6f72672f6572726269742f6572726269742d7068702f646f776e6c6f6164732e737667)](https://packagist.org/packages/errbit/errbit-php) [![Latest Unstable Version](https://camo.githubusercontent.com/87768829f52eae067ff3295da605a5c1be0d8220c93be688970a49c388f8b2cb/68747470733a2f2f706f7365722e707567782e6f72672f6572726269742f6572726269742d7068702f762f756e737461626c652e737667)](https://packagist.org/packages/errbit/errbit-php) [![License](https://camo.githubusercontent.com/0c42f3a42852835ee1c329b381a580925164a2d259e057d04d19bc567e8398f4/68747470733a2f2f706f7365722e707567782e6f72672f6572726269742f6572726269742d7068702f6c6963656e73652e737667)](https://packagist.org/packages/errbit/errbit-php)

### Errbit-PHP Composer package

[](#errbit-php-composer-package)

This is original \[Errbit-PHP\] () package adjusted to work as Composer package. You can find Errbit \[here\] ().

---

Errbit &amp; Airbrake Client for PHP
====================================

[](#errbit--airbrake-client-for-php)

This is a full-featured client to add integration with Errbit (or Airbrake) to any PHP &gt;= 5.3 application.

We had a number of issues with the [php-airbrake-notifier](https://github.com/geoloqi/php-airbrake-notifier)client, so we wrote this, based on the actual airbrake gem.

The php-airbrake-notifier client would regularly try to send invalid XML to the Airbrake service and did not work at all with Errbit (the free, self-hosted Airbrake-compatible application).

Installation
------------

[](#installation)

We haven't put this in PEAR or anything like that (please feel to contribute) so you need to install it locally.

```
git clone git://github.com/flippa/errbit-php.git

```

Usage
-----

[](#usage)

The intended way to use the notifier is as a singleton, though this is not enforced and you may instantiate multiple instances if for some bizarre reason you need to, or the word singleton makes you cry unicorn tears.

```
require_once 'errbit-php/lib/Errbit.php';

Errbit::instance()
  ->configure(array(
    'api_key'           => 'YOUR API KEY',
    'host'              => 'YOUR ERRBIT HOST, OR api.airbrake.io FOR AIRBRAKE',
    'port'              => 80,                                   // optional
    'secure'            => false,                                // optional
    'project_root'      => '/your/project/root',                 // optional
    'environment_name'  => 'production',                         // optional
    'params_filters'    => array('/password/', '/card_number/'), // optional
    'backtrace_filters' => array('#/some/long/path#' => '')      // optional
  ))
  ->start();
```

This will install error handlers that trap your PHP errors (according to your `error_reporting` settings) and log them to Errbit.

If you want to notify an exception manually, you can call `notify()`.

```
try {
  somethingErrorProne();
} catch (Exception $e) {
  Errbit::instance()->notify(
    $e,
    array('controller'=>'UsersController', 'action'=>'show')
  );
}
```

Using your own error handler
----------------------------

[](#using-your-own-error-handler)

If you don't want Errbit to install its own error handlers and prefer to use your own, you can just leave out the call to `start()`, then wherever you catch an Exception (note the errors *must* be converted to Exceptions), simply call

```
Errbit::instance()->notify($exception);
```

Using only some of the default handlers
---------------------------------------

[](#using-only-some-of-the-default-handlers)

There are three error handlers installed by Errbit: exception, error and fatal.

By default all three are used. If you want to use your own for some handlers, but not for others, pass the list into the `start()` method.

```
Errbit::instance()->start(array('error', 'fatal')); // using our own exception handler
```

TODO
----

[](#todo)

Some tests would be nice.

License &amp; Copyright
-----------------------

[](#license--copyright)

Copyright © Flippa.com Pty. Ltd. Licensed under the MIT license. See the LICENSE file for details.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2302a0e6b48de3c492f94a8bbca3ba01d3434b1ca2eb943136de43ea9592ecf?d=identicon)[wasilak](/maintainers/wasilak)

---

Top Contributors

[![d11wtq](https://avatars.githubusercontent.com/u/37948?v=4)](https://github.com/d11wtq "d11wtq (20 commits)")[![wasilak](https://avatars.githubusercontent.com/u/436730?v=4)](https://github.com/wasilak "wasilak (8 commits)")[![tijsverkoyen](https://avatars.githubusercontent.com/u/250042?v=4)](https://github.com/tijsverkoyen "tijsverkoyen (1 commits)")

### Embed Badge

![Health badge](/badges/errbit-errbit-php/health.svg)

```
[![Health](https://phpackages.com/badges/errbit-errbit-php/health.svg)](https://phpackages.com/packages/errbit-errbit-php)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[ekino/newrelic-bundle

Integrate New Relic into Symfony2

28111.2M8](/packages/ekino-newrelic-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
