sunnyflail/exception-handler

A simple Exception Handling addon for more graphical stack traces

1.2.0 2021-06-26 01:43 UTC

This package is auto-updated.

Last update: 2024-04-26 08:10:13 UTC


README

A simple graphical interface over exception message

How to use

After installing it with composer and importing composer autoloader in your front controller file, insert this code at top of your front controller, just after importing autoload.php

use SunnyFlail\ExceptionHandler\ExceptionHandler;

set_error_handler([ExceptionHandler::class, "handleError"]);
set_exception_handler([ExceptionHandler::class, "handleException"]);