Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pmmp/errorhandler

Basic utilities to make nasty PHP E_* errors more usable
https://github.com/pmmp/errorhandler

github-actions-enabled on-packagist php83 phpstan-l8 phpstan-strict

Last synced: about 1 month ago
JSON representation

Basic utilities to make nasty PHP E_* errors more usable

Awesome Lists containing this project

README

        

# ErrorHandler
![CI](https://github.com/pmmp/ErrorHandler/workflows/CI/badge.svg?branch=master)

This library contains some small utilities intended to make PHP's E_* errors more bearable.

- `ErrorToExceptionHandler` contains a basic error handler used to convert E_* errors into thrown `\ErrorException`s.
- `ErrorTypeToStringMap` contains a utility to convert E_* codes into human-readable text.