2017 © Pedro Peláez
 

library mpa-firephp-wrapper

Lightweight ZF2 module that wraps firephp. Provides a view helper and a controller plugin. Easily configurable and usable

image

mpalourdio/mpa-firephp-wrapper

Lightweight ZF2 module that wraps firephp. Provides a view helper and a controller plugin. Easily configurable and usable

  • Saturday, February 4, 2017
  • by mpalourdio
  • Repository
  • 1 Watchers
  • 1 Stars
  • 306 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Build Status Scrutinizer Code Quality Code Coverage SensioLabsInsight PHP 7.0+ MIT Licensed, (*1)

MpaFirephpWrapper

Lightweight ZF2 module that wraps firephp. Provides a view helper and a controller plugin. Easily configurable and usable., (*2)

Requirements

PHP 7.0+, (*3)

Configuration

Copy mpafirephpwrapper.config.global.php.dist in your autoload folder and rename it by removing the .dist extension., (*4)

Installation

Run the command below to install via Composer, (*5)

composer require mpalourdio/mpa-firephp-wrapper

Add "MpaFirephpWrapper" to your modules list in application.config.php, (*6)

Usage (in a controller action or in a view script)

$this->firephp($mythingtolog);

The default behavior is set to bind the info() method of FirePHP. You can override this by doing, (*7)

$this->firephp($mythingtolog, 'warn'); // the different possibilites are log/info/warn/error

Warning

Deep objects can freeze the plugin. You can set your own depth options in mpafirephpwrapper.config.global.php. The default ones are :, (*8)

$options = [
                'maxObjectDepth'      => 3,
                'maxArrayDepth'       => 3,
                'maxDepth'            => 3,
                'useNativeJsonEncode' => true,
                'includeLineNumbers'  => true
            ];

ZDT integration

The Zend Developer Tools toolbar will show you how many events are logged to Firephp, (*9)

The Versions

27/07 2014

0.3.0

0.3.0.0 https://github.com/mpalourdio/MpaFirephpWrapper

Lightweight ZF2 module that wraps firephp. Provides a view helper and a controller plugin. Easily configurable and usable

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 module firephp

21/05 2014

0.2.0

0.2.0.0 https://github.com/mpalourdio/MpaFirephpWrapper

Lightweight ZF2 module that wraps firephp. Provides a view helper and a controller plugin. Easily configurable and usable

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 module firephp

30/04 2014

0.1.0

0.1.0.0 https://github.com/mpalourdio/MpaFirephpWrapper

Lightweight ZF2 module that wraps firephp. Provides a view helper and a controller plugin. Easily configurable and usable

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 module firephp