R
R
Romi2021-05-21 15:17:28
PHP
Romi, 2021-05-21 15:17:28

How to properly set up an error handler like filp/whoops in a project without a framework?

I like the built-in error handlers in Laravel and Symfony - it's immediately clear and understandable what's wrong and where the legs of the exception grow from.

I tried to tie something similar to a project that is "from scratch" - i.e. just a regular Composer, and I wanted to take https://github.com/filp/whoops/ as a basis - but it didn’t happen :) It was useful to see an example:

https://github.com/filp/whoops/blob/master/ example...

and it broke my brain)))

Tell me, is there something similar, but only simple to set up?

I really want to have such a thing during development, but at the same time not spend more time on setting it up than on the work itself.

Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question