snapshotpl / zf-snap-php-error
There is no license information available for the latest version (1.0.0) of this package.
PHP Error module for Zend Framework 2
1.0.0
2014-02-25 21:03 UTC
Requires
- php: >=5.3.3
- joseph-lenton/php-error: dev-fixes as dev-master
- zendframework/zendframework: 2.*
README
PHP Error module for Zend Framework 2
Version 1.0.0 Created by Witold Wasiczko
Usage
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.
How to install?
{ "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
Features
- 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
)
How to config?
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)