snapshotpl/zf-snap-php-error
Composer 安装命令:
composer require snapshotpl/zf-snap-php-error
包简介
PHP Error module for Zend Framework 2
README 文档
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\ErrorHandlerobject by service manager (keyphperror)
How to config?
Overwrite module config:
<?php return array( 'php-error' => array( 'enabled' => true, 'options' => array(), ), );
- set
enabledtofalseto disabled PHP-Error - set
optionsof PHP-Error (more info here)
统计信息
- 总下载量: 37
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2013-11-11