2017 © Pedro Peláez
 

library debug

a debug and db profiler Module for zf2

image

ycheukf/debug

a debug and db profiler Module for zf2

  • Tuesday, November 18, 2014
  • by ycheukf
  • Repository
  • 1 Watchers
  • 0 Stars
  • 239 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

debug

Version 0.0.1 Created by ycheukf@gmail.com, (*1)

Introduction

YcheukfDebug is a debug module for zend framework 2. This module will dump vars and SQL to a cache file instead of printing out directly., (*2)

Features / Goals

  • dump vars as var_dump
  • dump db profiler (support multiple db adapter)
  • the debug info will not be rewrote when request a ajax

Requirements

Installation

Install via git, (*3)

Clone this repo git clone https://github.com/ycheukf/debug.git, (*4)

Install via Composer, (*5)

Add this to your composer.json under "require": "ycheukf/debug": "dev-master", (*6)

Run command: php composer.phar update, (*7)

Usage

1: add module 'YcheukfDebug' to your application.config.php, (*8)

return array(
    'modules' => array(
        'YcheukfDebug',
        'Application',
    ),
);

2: use the below code as var_dump, (*9)

    \YcheukfDebug\Model\Debug::dump($var, 'memo');

3: check the output at http://yourzf2project/public/index.php/ycfdebug, (*10)

Advanced Usage

If a project has multiple db adapter and master-slaver adapter, you need to attach a new event 'YcheukfDebugSetProfiler' into your code. just like the code in 'setAttach' function at vendor/ycheukf/debug/Module.php, (*11)

The Versions

18/11 2014

dev-master

9999999-dev https://github.com/ycheukf/debug

a debug and db profiler Module for zf2

  Sources   Download

BSD-3-Clause

The Requires

 

write zf2 dump ycheukf db profiler

27/07 2013

dev-developing

dev-developing https://github.com/ycheukf/debug

a debug and db profiler Module for zf2

  Sources   Download

BSD-3-Clause

The Requires

 

write zf2 dump ycheukf db profiler