bettrlife/elephander

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

Maintainers

Package info

github.com/BettrLife/elephander

pkg:composer/bettrlife/elephander

Statistics

Installs: 60

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2015-11-12 17:58 UTC

This package is not auto-updated.

Last update: 2026-03-29 00:14:59 UTC


README

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

Installation

composer install bettrlife/elephander

Overview

class ErrorHandler

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

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

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

class DynamicScope

Provides dynamically-scoped data.