Giter VIP home page Giter VIP logo

zf3-whoops's Introduction

ZF3-Whoops, integrated whoops in Zend Framework 3


Whoops!

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

  1. cd my/project/directory

  2. create a composer.json file with following contents:

    {
        "require": {
            "ppito/zf3-whoops": "^1.3"
        }
    }
  3. install composer via curl -s http://getcomposer.org/installer | php (on windows, download http://getcomposer.org/installer and execute it with PHP)

  4. run php composer.phar install

  5. open my/project/directory/configs/modules.config.php and add the following key :

    'WhoopsErrorHandler', // must be added as the first module
  6. optional : copy config/module.config.php in my/project/directory/config/autoload/zf3-whoops.local.php

  7. optional : edit my/project/directory/config/autoload/zf3-whoops.local.php

Features

Render View Manager - Twig Support

(zf3-whoops >= 1.2.0)

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:

'template_render' => 'zf3_whoops/twig_error',

Module Visibility Manager

(zf3-whoops >= 1.3.0)

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 :

License

ppito/zf3-whoops is licensed under the MIT License - See the LICENSE file for details.

zf3-whoops's People

Contributors

ppito avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.