Download the PHP package ppito/laminas-whoops without Composer
On this page you can find all versions of the php package ppito/laminas-whoops. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ppito/laminas-whoops
More information about ppito/laminas-whoops
Files in ppito/laminas-whoops
Package laminas-whoops
Short Description Laminas-Whoops, integrated whoops in Laminas Framework
License MIT
Homepage https://github.com/ppito/laminas-whoops
Informations about the package laminas-whoops
Laminas-Whoops, integrated whoops in Laminas
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.
Table of Contents
- Module installation
- Features
- Render View Manager - Twig Support
- Module Visibility Manager
- License
Module installation
cd my/project/directory
-
create a
composer.json
file with following contents: - 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/modules.config.php
and add the following key : - optional : copy
config/module.config.php
inmy/project/directory/config/autoload/laminas-whoops.local.php
- optional : edit
my/project/directory/config/autoload/laminas-whoops.local.php
Features
Render View Manager - Twig Support
By default this module use the simple php render, but you can now specify your favorite render.
Usage :
Twig render
has been supported, you just need to change the template_render
configuration:
Module Visibility Manager
It is now possible to manage the module loading by implement your own rules. For example, the module can be loaded only for the admin users or only for dev&preprod environments.
Usage :
- Create your own class by implement the interface VisibilityServiceAbstract)
- @see example VisibilityService.visibility-example.php.
- Change the
visibility_service_name
configuration to specify the name of your class.- @see example module.config.visibility-example.php.
Ignored Exceptions
By default, this module will route all exceptions to Whoops; however, you can create a list of exception classes that will be ignored by Whoops.
Usage:
Set the ignored_exceptions
configuration to an array of class names:
License
ppito/laminas-whoops is licensed under the MIT License - See the LICENSE file for details.
All versions of laminas-whoops with dependencies
laminas/laminas-eventmanager Version ^3.14
laminas/laminas-servicemanager Version ^3.20
laminas/laminas-mvc Version ^3.8
filp/whoops Version ^2.18