PHPackages                             bettrlife/elephander - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bettrlife/elephander

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bettrlife/elephander
====================

A smattering of questionable utilities, including typehint shenanigans and composable error handlers.

060PHP

Since Nov 12Pushed 10y ago2 watchersCompare

[ Source](https://github.com/BettrLife/elephander)[ Packagist](https://packagist.org/packages/bettrlife/elephander)[ RSS](/packages/bettrlife-elephander/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Elephander: Composable Error Handlers and Typehint Shenanigans
==============================================================

[](#elephander-composable-error-handlers-and-typehint-shenanigans)

An assortment of utilities which are useful but potentially ill-advised.

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

[](#installation)

```
composer install bettrlife/elephander
```

Overview
--------

[](#overview)

### class ErrorHandler

[](#class-errorhandler)

A mechanism for managing multiple error handlers and dispatching to them based on the error’s level and descriptive string.

### class Exceptionizer

[](#class-exceptionizer)

Turns PHP errors (and optionally warnings) into Exceptions. Each error/warning level has a specific exception type so you can easily catch exact error codes and let the rest bubble up. Integrates with ErrorHandler.

### class TypeHintHandler

[](#class-typehinthandler)

Gives you the ability to define non-class typehints and to convert function arguments based on typehints. Integrates with ErrorHandler.

### class DynamicScope

[](#class-dynamicscope)

Provides dynamically-scoped data.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/28968debd70ae4c8d47293bf0b93ff92dde0b2fe0c6d0bd62603af65672d9f20?d=identicon)[mjhoag](/maintainers/mjhoag)

---

Top Contributors

[![mjhoag](https://avatars.githubusercontent.com/u/6718167?v=4)](https://github.com/mjhoag "mjhoag (7 commits)")

### Embed Badge

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

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

PHPackages © 2026

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