Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.33 KB

README.md

File metadata and controls

26 lines (17 loc) · 1.33 KB

Build Status

MageOps Injectable PHP Debugging Helper

An namespace-isolated PHAR package based on Symfony Error Handler Component that adds nice error debugging information to any PHP script / application.

The whole idea is that it can be enabled for any and every PHP script globally by using the auto_prepend_file PHP INI directive.

The entrypoint already enables the error handler, so all that is left to do is just to download the latest PHAR package from GitHub Releases and configure it in your php.ini or PHP-FPM pool config.

Warning!

As the error handler exposes sensitive information never run it on production servers unless it's enabled only on-demand for certain requests after they have passed some kind of authorization - that's how we do it in MageOps Infrastructure.

TODO

  • Extend the Symfony's Error Handler with some extra info about the request and the environment incl. PHP configuration