PHPackages                             snapshotpl/zf-snap-php-error - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. snapshotpl/zf-snap-php-error

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

snapshotpl/zf-snap-php-error
============================

PHP Error module for Zend Framework 2

1.0.0(12y ago)7372PHPPHP &gt;=5.3.3

Since Nov 11Pushed 12y ago1 watchersCompare

[ Source](https://github.com/snapshotpl/ZfSnapPhpError)[ Packagist](https://packagist.org/packages/snapshotpl/zf-snap-php-error)[ RSS](/packages/snapshotpl-zf-snap-php-error/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

ZfSnapPhpError
==============

[](#zfsnapphperror)

PHP Error module for Zend Framework 2

Version 1.0.0 Created by Witold Wasiczko

[![Better Error Message](https://camo.githubusercontent.com/0a3d4ce045e55cbbb725309d8b333b0bf9c486f2678d7a7243af5eddf9a40f62/687474703a2f2f7777772e7073643268746d6c2e706c2f7075626c69632f5a66536e61705068704572726f722f686561642e706e67)](https://camo.githubusercontent.com/0a3d4ce045e55cbbb725309d8b333b0bf9c486f2678d7a7243af5eddf9a40f62/687474703a2f2f7777772e7073643268746d6c2e706c2f7075626c69632f5a66536e61705068704572726f722f686561642e706e67)

Usage
-----

[](#usage)

Just install module via composer and use all features of [PHP-Error](http://phperror.net/) project!

ZfSnapPhpError uses [forked version of PHP-Error](https://github.com/snapshotpl/PHP-Error) with new features and bug-fixes.

How to install?
---------------

[](#how-to-install)

By [composer.json](https://getcomposer.org/)

```
{
    "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
--------

[](#features)

- All [PHP-Error](http://phperror.net/) features
    - Catch php errors,
    - Catch php exceptions,
    - Works with ajax requests!
    - and [more](http://phperror.net/)...!
- 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 (key `phperror`)

[![Better Error Message](https://camo.githubusercontent.com/59e801ad84cdfb3b51e08bc5cd9f2a9160dce494958155a5dfc824ee2432a3e4/687474703a2f2f7777772e7073643268746d6c2e706c2f7075626c69632f5a66536e61705068704572726f722f637573746f6d2e706e67)](https://camo.githubusercontent.com/59e801ad84cdfb3b51e08bc5cd9f2a9160dce494958155a5dfc824ee2432a3e4/687474703a2f2f7777772e7073643268746d6c2e706c2f7075626c69632f5a66536e61705068704572726f722f637573746f6d2e706e67)

How to config?
--------------

[](#how-to-config)

Overwrite module config:

```
