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

This package is auto-updated.

Last update: 2024-03-29 02:44:43 UTC


README

PHP Error module for Zend Framework 2

Version 1.0.0 Created by Witold Wasiczko

Better Error Message

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?

By composer.json

{
    "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 (key phperror)

Better Error Message

How to config?

Overwrite module config:

<?php

return array(
    'php-error' => array(
        'enabled' => true,
        'options' => array(),
    ),
);
  • set enabled to false to disabled PHP-Error
  • set options of PHP-Error (more info here)