PHPackages                             transactpro/phalcon-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. transactpro/phalcon-debug-widget

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

transactpro/phalcon-debug-widget
================================

Very simple to install Debug Toolbar Widget for Phalcon framework.

1.0.4(10y ago)24.2k1HTML

Since Jul 9Pushed 10y ago3 watchersCompare

[ Source](https://github.com/TransactPRO/phalcon-debug-widget)[ Packagist](https://packagist.org/packages/transactpro/phalcon-debug-widget)[ RSS](/packages/transactpro-phalcon-debug-widget/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (5)DependenciesVersions (7)Used By (0)

Phalcon Debug Widget
====================

[](#phalcon-debug-widget)

[![SensioLabsInsight](https://camo.githubusercontent.com/0610f9680082937c9ec14659ec5a2cbcb2da1aa64c80dcc0bd4047590f1fad6a/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f63663036353465652d623039652d343031302d386363302d6134663566636464363136372f6269672e706e67)](https://insight.sensiolabs.com/projects/cf0654ee-b09e-4010-8cc0-a4f5fcdd6167)

[![Latest Stable Version](https://camo.githubusercontent.com/eb81696708194a8bb2f31e3726164e5d05f1a4af22626388995bf2fa26c1817e/68747470733a2f2f706f7365722e707567782e6f72672f5472616e7361637450524f2f7068616c636f6e2d64656275672d7769646765742f76657273696f6e3f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/TransactPRO/phalcon-debug-widget)[![Total Downloads](https://camo.githubusercontent.com/307275922110300bd3dd08b8d24caafc5ea6450f03d4de37d61d2f727063bbdf/68747470733a2f2f706f7365722e707567782e6f72672f5472616e7361637450524f2f7068616c636f6e2d64656275672d7769646765742f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/TransactPRO/phalcon-debug-widget)

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)

```
"require": {
	"transactpro/phalcon-debug-widget": "~1.0"
}
```

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

[](#usage-and-configuration)

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

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

Add these lines to your index.php file before you handle application.

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

echo $application->handle()->getContent();
```

Or you can specify your custom list of providers and panels:

```
if (PHALCONDEBUG) {
    $debugWidget = new \PDW\DebugWidget($di, [
        'db'          => ['db'],
        'dispatch'    => ['dispatcher'],
        'view'        => ['view'],
        'apiProvider' => ['apiProvider']
    ], [
        'server',
        'request',
        'views',
        'db',
        'api'
    ]);
}

echo $application->handle()->getContent();
```

Preview
-------

[](#preview)

### Server

[](#server)

[![](/server-info.png)](/server-info.png)

### Request

[](#request)

[![](/request-info.png)](/request-info.png)

### Views

[](#views)

[![](/views-info.png)](/views-info.png)

### Database

[](#database)

[![](/database-info.png)](/database-info.png)

### Api calls

[](#api-calls)

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

[](#attribution)

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

JQuery Syntax Highlighting implemented with [Prismjs.com](http://prismjs.com/)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 57.6% 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.

###  Release Activity

Cadence

Every ~30 days

Recently: every ~38 days

Total

6

Last Release

3836d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47269e48a15fbe884a6ba45026bb671743f4c68768c39bf6c0b3077688013d09?d=identicon)[uLow](/maintainers/uLow)

---

Top Contributors

[![uLow](https://avatars.githubusercontent.com/u/1608213?v=4)](https://github.com/uLow "uLow (19 commits)")[![jymboche](https://avatars.githubusercontent.com/u/241406?v=4)](https://github.com/jymboche "jymboche (9 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)")[![Green-Cat](https://avatars.githubusercontent.com/u/3328823?v=4)](https://github.com/Green-Cat "Green-Cat (1 commits)")[![sergeyklay](https://avatars.githubusercontent.com/u/1256298?v=4)](https://github.com/sergeyklay "sergeyklay (1 commits)")

### Embed Badge

![Health badge](/badges/transactpro-phalcon-debug-widget/health.svg)

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

###  Alternatives

[beyondcode/helo-laravel

HELO Laravel debug helper

90363.7k](/packages/beyondcode-helo-laravel)[phalcon/dd

This package will add the `dd` and `dump` helpers to your Phalcon application.

24296.9k27](/packages/phalcon-dd)

PHPackages © 2026

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