module zf2-whoops
PHP whoops error on ZF2 framework
taciclei/zf2-whoops
PHP whoops error on ZF2 framework
- Friday, October 6, 2017
- by tazouuu
- Repository
- 1 Watchers
- 0 Stars
- 18 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 11 Forks
- 0 Open issues
- 1 Versions
- 29 % Grown
ZF2 module, integrated whoops, (*1)
, (*2)
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., (*3)
Module installation
cd my/project/directory
-
create a composer.json
file with following contents:, (*4)
json
{
"require": {
"ghislainf/zf2-whoops": "dev-master"
}
}
, (*5)
- 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 your modules
, :, (*6)
php
'Zf2Whoops', // must be added as the first module
, (*7)
- copy
config/zf2-whoops.local.php
in my/project/directory/config/autoload
- edit
my/project/directory/config/autoload/zf2-whoops.local.php