PHPackages                             exceptiontrap/exceptiontrap - 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. exceptiontrap/exceptiontrap

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

exceptiontrap/exceptiontrap
===========================

Exception and Error Notifier / Tracker

1.1.1(12y ago)2386MITPHPPHP &gt;=5.2.0

Since May 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/itmLABS/exceptiontrap-php)[ Packagist](https://packagist.org/packages/exceptiontrap/exceptiontrap)[ Docs](https://github.com/itmLABS/exceptiontrap-php)[ RSS](/packages/exceptiontrap-exceptiontrap/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

[![Maintainability](https://camo.githubusercontent.com/84872edcdcc418b162845751ce9711ce54d8f60d709c3a7beba68fded7c84664/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f34366432613437356431626464323139373637372f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/itmLABS/exceptiontrap-php/maintainability)

Exceptiontrap PHP
=================

[](#exceptiontrap-php)

This Exceptiontrap notifier class is used to catch and send exceptions and errors of your PHP (and Zend Framework) applications to the [Exceptiontrap](https://exceptiontrap.com) webservice.

The class is compatible with PHP &gt;= 5.2

Setup
-----

[](#setup)

### PHP

[](#php)

#### 1. Install

[](#1-install)

Download the class and copy it to your desired folder (e.g. `Exceptiontrap/`) in your include path.

#### 2. Configure

[](#2-configure)

Now insert the following lines into your applications codebase.

```
require_once 'Exceptiontrap/Exceptiontrap.php';
Exceptiontrap::setup('YOUR_API_KEY', true, 'YOUR_APPLICATION_ENV');
```

and you should be fine.

### Zend Framework 1.x

[](#zend-framework-1x)

#### 1. Install

[](#1-install-1)

Download the class from here and copy it to your desired library folder (e.g. `/libraries/Exceptiontrap/`).

#### 2. Configure

[](#2-configure-1)

Now insert the following lines into your applications codebase.

```
require_once 'Exceptiontrap/Exceptiontrap.php';
Exceptiontrap::setup('YOUR_API_KEY', true, 'YOUR_APPLICATION_ENV');
```

#### 3. Register Plugin for better integration

[](#3-register-plugin-for-better-integration)

If you use the Bootstrap class insert the following method.

```
protected function _initExceptiontrap(){
  Zend_Controller_Front::getInstance()->registerPlugin(new Exceptiontrap_Services_Zf1ErrorHandler());
}
```

Or register the plugin manually to the front controller.

```
$controller = Zend_Controller_Front::getInstance();
$controller->registerPlugin(new Exceptiontrap_Services_Zf1ErrorHandler());
```

### Other Frameworks (Symfony, CodeIgniter, Lithium, ...)

[](#other-frameworks-symfony-codeigniter-lithium-)

Until the class is extended to support other frameworks directly as a plugin, you can set the `request-components` by yourself. The `setRequestComponents` class method expects an associated array to do this.

```
Exceptiontrap::setRequestComponents(array(
  'module' => 'YOUR_CURRENT_MODULE',
  'controller' => 'YOUR_CURRENT_CONTROLLER',
  'action' => 'YOUR_CURRENT_ACTION'
));
```

Information / Further Configuration
-----------------------------------

[](#information--further-configuration)

You can find your API-Key by login to your [Exceptiontrap Account](https://exceptiontrap.com/login), select the application and follow the **Setup** Link.

If there is data in your request parameters, session or environment, which you don't want to be sent to Exceptiontrap, define them as follows:

```
Exceptiontrap::setFilterParams(array('HTTP_COOKIE', '_app_session', 'password'));
```

You can also specify exceptions and errors, which should be ignored and not sent.

```
Exceptiontrap::setIgnoreList(array('InvalidArgumentException', 'Zend_Translate_Exception'));
```

Known Issues / Todo
-------------------

[](#known-issues--todo)

- Optimize and insert the test suite to plugin.
- Better integration for other frameworks.

Copyright (c) 2014 \[Torsten Bühl\], released under the MIT license

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~30 days

Total

5

Last Release

4630d ago

### Community

Maintainers

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

---

Top Contributors

[![tbuehl](https://avatars.githubusercontent.com/u/206999?v=4)](https://github.com/tbuehl "tbuehl (32 commits)")

---

Tags

exception notifierexception tracker

### Embed Badge

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

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

###  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)
