I am looking for a free for commercial use PHP library to help me with error handling.

Ideally (but not a “must”), it should hook error and exception handling, so that I just add one line of code to kick it off.

It would be nice if I could override it in a few places, but continue to have it as the default handler. Possibly just off() and on() calls.

It should gather as much information as possible, and present it in a clear manner. E.g file name, line number, error/exception info, stack dump, globals such a $_POST[], $_GET[] etc, local variables it that is possible, and the kitchen sink.

It should be possible to control how the information is presented. For instance, during development, I might want to see it in the browser (or its developer console). In production, I would probably want it to email me, and possibly inform the user that a problem has occurred and is being handled, maybe providing a link with more info.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.