--- ABOUT ---<p>There is Lagger - lightweight and flexible open-source PHP library for errors/exceptions/debugs handling PHP: http://code.google.com/p/lagger<p>PHP Console is extension for Lagger, that displays PHP errors/debug messages in Google Chrome console and in notification popups.<p>Developer: http://linkedin.com/in/barbushin (freelancer, ready for new job)<p>--- FEATURES ---<p>✓ Handle exceptions and all errors, even E_FATAL and E_COMPILE
✓ Display debug and errors messages in Google Chrome console
✓ Display debug and errors messages in Notification popups
✓ First popup is displayed with 3 second lifetime
✓ All other popups are displayed with custom lifetime
✓ Popup is not hiding if mouse is over or popup window is selected
✓ All popups can be closed by clicking (x) close icon of any popup
✓ Catch messages from any sources
✓ Web page
✓ AJAX
✓ IFrame
✓ Make custom actions on errors and debug messages:
✓ Log to file
✓ Send to Email
✓ Send to FirePHP
✓ Send to SMS<p>--- HOW TO USE ---<p>1. Install PHP Console extension
2. Download Lagger library - http://code.google.com/p/lagger/downloads/list
3. Run /examples/index.php and check output (must be like on screenshots)
4. Configure Lagger to send errors and debug messages to Chrome console:<p>// Autoload Lagger classes and initialize basics
define('LAGGER_BASE_DIR', '../library/');
function autoloadLaggerClasses($class) {
if(strpos($class, 'Lagger_') === 0) {
require_once (LAGGER_BASE_DIR . str_replace('_', '/', $class) . '.php');
}
}
spl_autoload_register('autoloadLaggerClasses');
$laggerES = new Lagger_Eventspace();
$debug = new Lagger_Handler_Debug($laggerES);
$errors = new Lagger_Handler_Errors($laggerES);
$exceptions = new Lagger_Handler_Exceptions($laggerES);<p>// display all debug messages in console without notifications
$debug->addAction(new Lagger_Action_ChromeConsole('debug'), null);<p>//display all errors in console and as notifications with 1 second lifetime
$errorsChromeConsole = new Lagger_Action_ChromeConsole('error', 1);
$errors->addAction($errorsChromeConsole, null);
$exceptions->addAction($errorsChromeConsole, null);<p>// test
$debug->handle('debug message', 'some,test,tags');
echo $unkownVar;
unkownFunction();<p>For all available Lagger features using see:
http://code.google.com/p/lagger/source/browse/trunk/examples/lagger_init.php