PHPackages                             ycheukf/debug - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. ycheukf/debug

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

ycheukf/debug
=============

a debug and db profiler Module for zf2

0254PHP

Since Jul 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ycheukf/debug)[ Packagist](https://packagist.org/packages/ycheukf/debug)[ RSS](/packages/ycheukf-debug/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

debug
=====

[](#debug)

Version 0.0.1 Created by

Introduction
------------

[](#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.

Features / Goals
----------------

[](#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
------------

[](#requirements)

- [PHP5](https://php.net/)
- [Zend Framework 2](https://github.com/zendframework/zf2) - Not needed to generate your models

Installation
------------

[](#installation)

**Install via git**

Clone this repo `git clone https://github.com/ycheukf/debug.git`

**Install via Composer**

Add this to your composer.json under "require": `"ycheukf/debug": "dev-master"`

Run command: `php composer.phar update`

Usage
-----

[](#usage)

1: add module 'YcheukfDebug' to your application.config.php

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

2: use the below code as var\_dump

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

3: check the output at

Advanced Usage
--------------

[](#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

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a92018135da109063aa8879d1f8ed3f0ab6ffeb73e5c3bf4ff68ecc5a69ec5ab?d=identicon)[ycheukf](/maintainers/ycheukf)

---

Top Contributors

[![fengruzhuo](https://avatars.githubusercontent.com/u/5070068?v=4)](https://github.com/fengruzhuo "fengruzhuo (2 commits)")

### Embed Badge

![Health badge](/badges/ycheukf-debug/health.svg)

```
[![Health](https://phpackages.com/badges/ycheukf-debug/health.svg)](https://phpackages.com/packages/ycheukf-debug)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
