ahmetbarut/php-exception

Php simple expception

v0.1.0 2021-11-07 21:29 UTC

This package is auto-updated.

Last update: 2022-01-07 21:50:53 UTC


README

It finds which file and line it is in by following the exceptions in PHP and shows you the codes of the relevant file and error.

Example: Exception example

Install

    composer require ahmetbarut/php-exception

Configure

My advice to you is to use it where all the exceptions occur, that is, where your application is running. This way you can see all exceptions.

    use AhmetBarut\Exception\Init;

    try {
        // code...
    } catch (\Throwable $th) {

        $ex = new Init($th);
        $ex->run();
    }

...