Skip to content

BettrLife/elephander

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elephander: Composable Error Handlers and Typehint Shenanigans

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.

About

Error handling and typehint shenanigans.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages