Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mpalourdio/mpafirephpwrapper
Lightweight ZF2 module that wraps firephp. Provides a view helper and a controller plugin. Easily configurable and usable.
https://github.com/mpalourdio/mpafirephpwrapper
Last synced: 3 days ago
JSON representation
Lightweight ZF2 module that wraps firephp. Provides a view helper and a controller plugin. Easily configurable and usable.
- Host: GitHub
- URL: https://github.com/mpalourdio/mpafirephpwrapper
- Owner: mpalourdio
- License: mit
- Created: 2013-10-20T12:05:53.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2018-12-29T09:13:08.000Z (almost 6 years ago)
- Last Synced: 2024-10-12T08:24:36.890Z (about 1 month ago)
- Language: PHP
- Homepage:
- Size: 77.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/mpalourdio/MpaFirephpWrapper.png?branch=master)](https://travis-ci.org/mpalourdio/MpaFirephpWrapper)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mpalourdio/MpaFirephpWrapper/badges/quality-score.png?s=b7de6737f82c7b34c50a8d96c8950f875f43e2e3)](https://scrutinizer-ci.com/g/mpalourdio/MpaFirephpWrapper/)
[![Code Coverage](https://scrutinizer-ci.com/g/mpalourdio/MpaFirephpWrapper/badges/coverage.png?s=fa857fb2a5ca1ff4a524ef4404cfdbb54f21c76e)](https://scrutinizer-ci.com/g/mpalourdio/MpaFirephpWrapper/)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/c810ca98-d7ff-42c5-a003-e54614759aa7/mini.png)](https://insight.sensiolabs.com/projects/c810ca98-d7ff-42c5-a003-e54614759aa7)
[![PHP 7.0+][ico-engine]][lang]
[![MIT Licensed][ico-license]][license][ico-engine]: http://img.shields.io/badge/php-7.0+-8892BF.svg
[lang]: http://php.net
[ico-license]: http://img.shields.io/packagist/l/adlawson/veval.svg
[license]: LICENSEMpaFirephpWrapper
=================Lightweight ZF2 module that wraps firephp. Provides a view helper and a controller plugin. Easily configurable and usable.
Requirements
============PHP 7.0+
Configuration
=============
Copy **mpafirephpwrapper.config.global.php.dist** in your **autoload folder** and rename it by removing the .dist
extension.Installation
============
Run the command below to install via Composer```shell
composer require mpalourdio/mpa-firephp-wrapper
```
Add "MpaFirephpWrapper" to your **modules list** in **application.config.php**Usage (in a controller action or in a view script)
==================================================```php
$this->firephp($mythingtolog);
```
The default behavior is set to bind the info() method of FirePHP. You can override this by doing
```php
$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 :
```php
$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