PHP Error module for Zend Framework 2
Version 1.0.0 Created by Witold Wasiczko
Just install module via composer and use all features of PHP-Error project!
ZfSnapPhpError uses forked version of PHP-Error with new features and bug-fixes.
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/snapshotpl/PHP-Error"
}
],
"require": {
"snapshotpl/zf-snap-php-error": "1.*"
}
}
run composer update
and add module ZfSnapPhpError
to ZF2 application.config.php
- All PHP-Error features
- Catch php errors,
- Catch php exceptions,
- Works with ajax requests!
- and more...!
- Ready to use - just install via composer.json!
- easy configurable via module config,
- additional info about ZF2 application on error page:
- service_manager,
- modules,
- current route,
- access to
\php_error\ErrorHandler
object by service manager (keyphperror
)
Overwrite module config:
<?php
return array(
'php-error' => array(
'enabled' => true,
'options' => array(),
),
);
- set
enabled
tofalse
to disabled PHP-Error - set
options
of PHP-Error (more info here)