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.
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.
- Extend the Symfony's Error Handler with some extra info about the request and the environment incl. PHP configuration