PHPackages                             eden/handler - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. eden/handler

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

eden/handler
============

Autoloading, error and exception handler

4.0.1(10y ago)07.7k1MITPHPPHP &gt;=5.4.1

Since Oct 6Pushed 10y ago3 watchersCompare

[ Source](https://github.com/Eden-PHP/Handler)[ Packagist](https://packagist.org/packages/eden/handler)[ Docs](http://eden-php.com)[ RSS](/packages/eden-handler/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (5)Used By (1)

[![logo](https://camo.githubusercontent.com/683ba05b2b51f50045c674b19a4f0ceb30702a8ab495623be7c02e07ab226f08/687474703a2f2f6564656e2e6f70656e6f766174652e636f6d2f6173736574732f696d616765732f636c6f75642d736f6369616c2e706e67)](https://camo.githubusercontent.com/683ba05b2b51f50045c674b19a4f0ceb30702a8ab495623be7c02e07ab226f08/687474703a2f2f6564656e2e6f70656e6f766174652e636f6d2f6173736574732f696d616765732f636c6f75642d736f6369616c2e706e67) Eden Handler
==================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#-eden-handler)

[![Build Status](https://camo.githubusercontent.com/8ff67c2e8c3b0032bf2ed32a4e1fa7231971ca9b0b05ddc35952f362b2614b30/68747470733a2f2f6170692e7472617669732d63692e6f72672f4564656e2d5048502f48616e646c65722e706e67)](https://travis-ci.org/Eden-PHP/Handler)
===========================================================================================================================================================================================================================================================

[](#)

- [Install](#install)
- [Introduction](#intro)
- [API](#api)
- [Contributing](#contributing)

====

Install
-------

[](#install)

`composer install eden/handler`

====

Introduction
------------

[](#introduction)

Allows errors and exceptions to be event driven.

====

API
---

[](#api)

====

### Registering the Exception Handler

[](#registering-the-exception-handler)

Adds an event driven way to respond to exceptions.

#### Example

[](#example)

```
eden('handler')
	->exception()
	->register()
	->on('exception', function(
		$type,
		$level,
        $reporter,
		$file,
		$line,
        $message,
		$trace
	) {
		echo 'An exception has occurred';
	});

```

====

### Releasing the Exception Handler

[](#releasing-the-exception-handler)

#### Example

[](#example-1)

```
eden('handler')->exception()->release();

```

====

### Registering the Error Handler

[](#registering-the-error-handler)

Adds an event driven way to respond to PHP errors.

#### Example

[](#example-2)

```
eden('handler')
	->error()
	->register()
	->on('error', function(
		$type,
		$level,
        $reporter,
		$file,
		$line,
        $message,
		$trace
	) {
		echo 'An error has occurred';
	});

```

====

### Releasing the Error Handler

[](#releasing-the-error-handler)

#### Example

[](#example-3)

```
eden('handler')->error()->release();

```

====

\#Contributing to Eden

Contributions to *Eden* are following the Github work flow. Please read up before contributing.

\##Setting up your machine with the Eden repository and your fork

1. Fork the repository
2. Fire up your local terminal create a new branch from the `v4` branch of your fork with a branch name describing what your changes are. Possible branch name types:
    - bugfix
    - feature
    - improvement
3. Make your changes. Always make sure to sign-off (-s) on all commits made (git commit -s -m "Commit message")

\##Making pull requests

1. Please ensure to run `phpunit` before making a pull request.
2. Push your code to your remote forked version.
3. Go back to your forked version on GitHub and submit a pull request.
4. An Eden developer will review your code and merge it in when it has been classified as suitable.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

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 ~2 days

Total

4

Last Release

3917d ago

PHP version history (2 changes)v3PHP &gt;=5.3.1

4.x-devPHP &gt;=5.4.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/120378?v=4)[Christian Blanquera](/maintainers/cblanquera)[@cblanquera](https://github.com/cblanquera)

---

Top Contributors

[![clark21](https://avatars.githubusercontent.com/u/5639521?v=4)](https://github.com/clark21 "clark21 (10 commits)")

---

Tags

libraryeden

### Embed Badge

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

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

###  Alternatives

[filp/whoops

php error handling for cool kids

13.6k429.7M1.5k](/packages/filp-whoops)[eden/mail

Eden POP3, IMAP and SMTP component

179276.6k1](/packages/eden-mail)[ikkez/f3-falsum

Pretty error handling for Fat-Free Framework

22149.2k3](/packages/ikkez-f3-falsum)[excimetry/excimetry

Excimetry PHP package. Bridge between ext-eximer and open telemetry

655.0k1](/packages/excimetry-excimetry)

PHPackages © 2026

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