PHPackages                             yohns/e - 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. yohns/e

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

yohns/e
=======

Error handler and logger

0.2.0(5mo ago)016MITPHPPHP ^8.0

Since Aug 18Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/Yohn/E)[ Packagist](https://packagist.org/packages/yohns/e)[ RSS](/packages/yohns-e/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Error Handling
==============

[](#error-handling)

An internal error handler and error logger.

Yohns\\Core\\E
--------------

[](#yohnscoree)

```
include 'vendor/autoload.php';

use Yohns\Core\E;

E::initiate([
	// the directory to store the error logs in.
	'dir' => __DIR__.'/logs',
	// default to display the errors
	'display' => true,
	// what variables to store
	'store' => [
		// if any $_POST variable is set
		'_POST',
		// if any $_FILES variable is set
		'_FILES',
		// if any $_GET variable is set
		'_GET',
		// if any $_COOKIE variable is set, default this is not saved
		//'_COOKIE',
		// if any $_SESSION variable is set, default this is not saved
		//'_SESSION'
	],
]);

set_error_handler('Yohns\Core\E::errHandler');
set_exception_handler('Yohns\Core\E::excHandler');
```

Yohns\\Core\\Err
----------------

[](#yohnscoreerr)

```
include 'vendor/autoload.php';

use Yohns\Core\Err;

try {
	throw new Err("This is a custom error message.");
} catch (Err $e) {
	echo $e->getDetailedMessage();
}
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance70

Regular maintenance activity

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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

Total

3

Last Release

171d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2002591?v=4)[JWB](/maintainers/Yohn)[@Yohn](https://github.com/Yohn)

---

Top Contributors

[![Yohn](https://avatars.githubusercontent.com/u/2002591?v=4)](https://github.com/Yohn "Yohn (3 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M276](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M343](/packages/open-telemetry-sdk)

PHPackages © 2026

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