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

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

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

errbit/airbrake integration with php with psr-2

1.0.5(11y ago)023.9k1MITPHPPHP &gt;=5.3.2

Since Sep 30Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (9)Used By (1)

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

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

[![Coverage Status](https://camo.githubusercontent.com/9f1db5d93888987e07724d1c3ea0a3044a721be68601878fa0cf68ad21ca9568/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f656d6769657a65742f6572726269745048502f62616467652e706e67)](https://coveralls.io/r/emgiezet/errbitPHP)[![Build Status](https://camo.githubusercontent.com/7aae42eea2cdc690e8246be9d028ada2a2783eaa869fdb21495ed40ebc6e8372/68747470733a2f2f7472617669732d63692e6f72672f656d6769657a65742f6572726269745048502e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/emgiezet/errbitPHP)[![Dependency Status](https://camo.githubusercontent.com/211504cebfa5e50da7fe88b28a13734c1f2a86fd4dbfb543c8571a4be9df87e3/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3532343965373235363332626163306134393030623262662f62616467652e706e67)](https://www.versioneye.com/user/projects/5249e725632bac0a4900b2bf)[![Latest Stable Version](https://camo.githubusercontent.com/28740bd014381349a3c9552cf7240b742af0e6ee84b1b15912773a66b4df1a19/68747470733a2f2f706f7365722e707567782e6f72672f656d6769657a65742f6572726269742d7068702f762f737461626c652e706e67)](https://packagist.org/packages/emgiezet/errbit-php)

This is a full-featured client to add integration with [Errbit](https://github.com/errbit/errbit) (or Airbrake) to any PHP &gt;= 5.3 application.

Original idea and source has no support for php namespaces. Moreover it has a bug and with newest errbit version the xml has not supported chars.

What is for?
------------

[](#what-is-for)

Check the presentation below!

[![Huston whe have an Airbrake](https://camo.githubusercontent.com/084eabe300f4a02efa593aef82e30301981326206c155f805159faf81b9f5a34/687474703a2f2f696d6167652e736c696465736861726563646e2e636f6d2f687573746f6e776568617665616e6169726272616b652d3133313132353135323633372d70687061707030322f39352f736c6964652d312d3633382e6a70673f31333835343135303833)](http://www.slideshare.net/MaxMaecki/meetphp-11-huston-we-have-an-airbrake)

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

[](#installation)

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

### Clone Way

[](#clone-way)

```
git clone git://github.com/emgiezet/errbitPHP.git

```

### Composer Way

[](#composer-way)

```
require: {
    ...
    "emgiezet/errbit-php": "dev-master"
  }
```

Usage
-----

[](#usage)

To setup an Errbit instance you need to configure it with an array of parameters. Only two of them are mandatory.

```
use Errbit\Errbit;

Errbit::instance()
  ->configure(array(
    'api_key'           => 'YOUR API KEY',
    'host'              => 'YOUR ERRBIT HOST, OR api.airbrake.io FOR AIRBRAKE'
  ))
  ->start();
```

View the [full configuration](https://github.com/emgiezet/errbitPHP/blob/master/Resources/doc/full_config.md).

This will register error handlers:

```
set_error_handler();
set_exception_handler();
register_shutdown_function();
```

And log all the errors intercepted by handlers to your errbit.

If you want to notify an exception manually, you can call `notify()` without calling a `start()`. That way you can avoid registering the handlers.

```
use Errbit\Errbit;

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

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

With this type of use. Library will not handle the errors collected by:

```
set_error_handler();
register_shutdown_function();
```

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.

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

Symfony2 Integration
--------------------

[](#symfony2-integration)

See the [documentation](https://github.com/emgiezet/errbitPHP/blob/master/Resources/doc/symfony2_integration.md) for symfony2 integration.

Kohana 3.3 Integration
----------------------

[](#kohana-33-integration)

check out the [kohana-errbit](https://github.com/kwn/kohana-errbit) for kohana 3.3 integration.

Symfony 1.4 Integration
-----------------------

[](#symfony-14-integration)

No namespaces in php 5.2 so this library can't be used. Go to [filipc/sfErrbitPlugin](https://github.com/filipc/sfErrbitPlugin) and monitor your legacy 1.4 applications.

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

[](#license--copyright)

Copyright © mmx3.pl 2013 Licensed under the MIT license. Based on idea of git://github.com/flippa/errbit-php.git but rewritten in 90%. See the [LICENSE](https://github.com/emgiezet/errbitPHP/blob/master/LICENSE)file for details.

Contributors
------------

[](#contributors)

main idea @flippa OOP Rework, Tests and packaging @emgiezet

Rest of the contributors: [Contributors page](https://github.com/emgiezet/errbitPHP/graphs/contributors)

[![Bitdeli Badge](https://camo.githubusercontent.com/657b059d0aadf40ff3ee7b76da07e1829f096bf72a7a36dc85535d62b3a0e6c7/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f656d6769657a65742f6572726269747068702f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 59.1% 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.

###  Release Activity

Cadence

Every ~85 days

Recently: every ~104 days

Total

6

Last Release

4184d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2269242?v=4)[Nikola Kovacs](/maintainers/nkovacs)[@nkovacs](https://github.com/nkovacs)

---

Top Contributors

[![emgiezet](https://avatars.githubusercontent.com/u/1410665?v=4)](https://github.com/emgiezet "emgiezet (52 commits)")[![d11wtq](https://avatars.githubusercontent.com/u/37948?v=4)](https://github.com/d11wtq "d11wtq (24 commits)")[![stloyd](https://avatars.githubusercontent.com/u/67402?v=4)](https://github.com/stloyd "stloyd (4 commits)")[![danielbeardsley](https://avatars.githubusercontent.com/u/26855?v=4)](https://github.com/danielbeardsley "danielbeardsley (3 commits)")[![nkovacs](https://avatars.githubusercontent.com/u/2269242?v=4)](https://github.com/nkovacs "nkovacs (2 commits)")[![tijsverkoyen](https://avatars.githubusercontent.com/u/250042?v=4)](https://github.com/tijsverkoyen "tijsverkoyen (1 commits)")[![maintux](https://avatars.githubusercontent.com/u/1492713?v=4)](https://github.com/maintux "maintux (1 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

airbrakeerror-trackingerrbiterrbit php

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[emgiezet/errbit-php

errbit/airbrake integration with php with psr-2

44146.2k3](/packages/emgiezet-errbit-php)[justbetter/magento2-sentry

Magento 2 Logger for Sentry

1851.5M3](/packages/justbetter-magento2-sentry)[rigor789/airbrake-laravel

Laravel package for the Airbrake API, which supports Errbit

1636.5k](/packages/rigor789-airbrake-laravel)[kouz/laravel-airbrake

Laravel service provider for Airbrake https://github.com/airbrake/phpbrake

26298.1k](/packages/kouz-laravel-airbrake)[lordsimal/cakephp-sentry

Sentry plugin for CakePHP

12270.3k](/packages/lordsimal-cakephp-sentry)[inspector-apm/inspector-symfony

Code Execution Monitoring for Symfony applications.

2830.1k2](/packages/inspector-apm-inspector-symfony)

PHPackages © 2026

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