PHPackages                             zazza/phalcon2-debug-widget - 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. zazza/phalcon2-debug-widget

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

zazza/phalcon2-debug-widget
===========================

Phalcon debug toolbar for Phalcon 2

13.0k4HTML

Since Feb 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Zazza/phalcon2-debug-widget)[ Packagist](https://packagist.org/packages/zazza/phalcon2-debug-widget)[ RSS](/packages/zazza-phalcon2-debug-widget/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Phalcon Debug Widget (PDW) for Phalcon 2 (and 3)
================================================

[](#phalcon-debug-widget-pdw-for-phalcon-2-and-3)

1. Forked from [jymboche/phalcon-debug-widget](https://github.com/jymboche/phalcon-debug-widget)
2. Update from

Changelog:
==========

[](#changelog)

2 February 2018:

- db panel output with htmlspecialchars

=====

1 February 2018:

- The 'server' tab has been removed. Since this data can be viewed to any firebug from the browser
- By default, css, js and html PDW code is minimized:

```
$ debugWidget = new \ PDW \ DebugWidget ($ di);

```

or

```
$ debugWidget = new \ PDW \ DebugWidget ($ di, [
         'db' => ['db'],
         'dispatch' => ['dispatcher'],
         'view' => ['view']
     ], $ minimify = false);

```

=====

- it isn't necessary to move assets(/pdw-assets/) to public dir
- jquery dependence is removed
- the sections: Server, Views, Database hide and show by click

Note (How it works):
====================

[](#note-how-it-works)

The debug widget for now is very simplistic and more of a proof-of-concept. It expects you have three services in your dependency injector named "db", "dispatcher" and "view" and that they correspond to those services. When you pass the DI to Phalcon Debug Widget It looks for those specific services and:

- sets them as shared services
- sets the eventManager for them
- Attaches itself to those events

This means passing the DI to the debug widget will alter those services. Generally speaking, a shared db, dispatcher, and view is fine. If you have ideas for other ways to hook in, please open an issue for discussion.

The Phalcon Debug Widget is designed to make development easier by displaying debugging information directly in your browser window. Currently it displays php globals such as $\_SESSION as well as outputing resource usage and database queries and connection information. It includes syntax highlighting via [Prismjs.com](http://prismjs.com/).

If it looks familiar, its because its modeled after the [Yii debug toolbar](https://github.com/malyshev/yii-debug-toolbar)

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

[](#installation)

composer.json:

```
"zazza/phalcon2-debug-widget": "dev-master"

```

Copy or move the /vendor/zazza/phalcon-debug-widget/src/pdw-assets folder to your public folder.

Usage and Configuration
-----------------------

[](#usage-and-configuration)

Define a debug or environment flag in your main index.php file so you can easily disable the Phalcon Debug Widget on production environments. Example:

```
defined('PHALCONDEBUG') || define('PHALCONDEBUG', true);
```

After you have setup your \\Phalcon\\Loader and \\Phalcon\\DI\\FactoryDefault() create a new instance of the debug widget.

```
if (PHALCONDEBUG == true) {
	$debugWidget = new \PDW\DebugWidget($di);
}
```

Preview
-------

[](#preview)

[![](/preview.png)](/preview.png)

Attribution:
------------

[](#attribution)

Bug Icon designed by [Nithin Viswanathan](http://thenounproject.com/nsteve) from the [Noun Project](http://thenounproject.com)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.2% 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://avatars.githubusercontent.com/u/722091?v=4)[Zazza](/maintainers/Zazza)[@Zazza](https://github.com/Zazza)

---

Top Contributors

[![Zazza](https://avatars.githubusercontent.com/u/722091?v=4)](https://github.com/Zazza "Zazza (30 commits)")[![jymboche](https://avatars.githubusercontent.com/u/241406?v=4)](https://github.com/jymboche "jymboche (7 commits)")[![andrefigueira](https://avatars.githubusercontent.com/u/806006?v=4)](https://github.com/andrefigueira "andrefigueira (4 commits)")[![ogarbe](https://avatars.githubusercontent.com/u/1395245?v=4)](https://github.com/ogarbe "ogarbe (2 commits)")[![at15](https://avatars.githubusercontent.com/u/5621298?v=4)](https://github.com/at15 "at15 (1 commits)")

### Embed Badge

![Health badge](/badges/zazza-phalcon2-debug-widget/health.svg)

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

###  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)
