Skip to content

An namespace-isolated PHAR package for injecting Symfony Error Handler

Notifications You must be signed in to change notification settings

mageops/php-debug-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An namespace-isolated PHAR package for injecting Symfony Error Handler

Resources

Stars

Watchers

Forks

Packages

No packages published