ZF2 module, integrated Whoops and support for Zf2 Logger
Whoops is an error handler base/framework for PHP. Out-of-the-box, it provides a pretty error interface that helps you debug your web projects, but at heart it's a simple yet powerful stacked error handling system.
-
cd my/project/directory
-
create a
composer.json
file with following contents:{ "require": { "inditel/zf2-whoops": "dev-master" } }
-
install composer via
curl -s http://getcomposer.org/installer | php
(on windows, download http://getcomposer.org/installer and execute it with PHP) -
run
php composer.phar install
-
open
my/project/directory/configs/application.config.php
and add the following key to yourmodules
, :'Zf2Whoops', // must be added as the first module
-
copy
config/zf2-whoops.config.php
inmy/project/directory/config/autoload
-
edit
my/project/directory/config/autoload/zf2-whoops.config.php