PHPackages                             c0de8/phalcon3-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. c0de8/phalcon3-debug-widget

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

c0de8/phalcon3-debug-widget
===========================

Phalcon debug toolbar for Phalcon 3

0.1.1(9y ago)2151GPL-3.0+PHPPHP &gt;=5.4.0

Since Dec 11Pushed 9y agoCompare

[ Source](https://github.com/C0DE8/phalcon3-debug-widget)[ Packagist](https://packagist.org/packages/c0de8/phalcon3-debug-widget)[ RSS](/packages/c0de8-phalcon3-debug-widget/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (3)Used By (0)

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

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

[![Latest Stable Version](https://camo.githubusercontent.com/1365bc47f4ab5e8a391f5096a2bff53297837cc8b950625e72c1ee02e8f52447/68747470733a2f2f706f7365722e707567782e6f72672f43304445382f7068616c636f6e332d64656275672d7769646765742f76657273696f6e3f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/C0DE8/phalcon3-debug-widget)[![Total Downloads](https://camo.githubusercontent.com/028312c3166403cfc07ac4f9cd0491f03f3f7d3cc485005e2ccb71ea952823d9/68747470733a2f2f706f7365722e707567782e6f72672f43304445382f7068616c636f6e332d64656275672d7769646765742f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/C0DE8/phalcon3-debug-widget)

[![License](https://camo.githubusercontent.com/a6fbf231e9dc007946386926d1608afdb31b2ab4c029b827cbb870bba336b391/68747470733a2f2f706f7365722e707567782e6f72672f63306465382f7068616c636f6e332d64656275672d7769646765742f6c6963656e7365)](https://packagist.org/packages/c0de8/phalcon3-debug-widget)

1. Forked from \[Zazza/phalcon-debug-widget\] ()
2. Update from

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

[](#changelog)

- no necessary assets (all images, CSS and JS Code is minified and inline)
- no jquery dependence (jQuery is executed with "noConflict")
- 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:

```
"c0de8/phalcon3-debug-widget": "dev-master"

```

composer require (command line):

```
composer require c0de8/phalcon3-debug-widget:dev-master

```

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 inside your "index.php", where application is started.

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

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 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~42 days

Total

2

Last Release

3446d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20956699?v=4)[C0DE8](/maintainers/C0DE8)[@C0DE8](https://github.com/C0DE8)

---

Top Contributors

[![C0DE8](https://avatars.githubusercontent.com/u/20956699?v=4)](https://github.com/C0DE8 "C0DE8 (25 commits)")[![Zazza](https://avatars.githubusercontent.com/u/722091?v=4)](https://github.com/Zazza "Zazza (23 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)")

---

Tags

bardebugdebuggingphalconphpphp7widget

### Embed Badge

![Health badge](/badges/c0de8-phalcon3-debug-widget/health.svg)

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

###  Alternatives

[fjogeleit/prometheus-messenger-middleware

Prometheus Middleware for the Symfony Messenger Component

2255.2k](/packages/fjogeleit-prometheus-messenger-middleware)[spatie/craft-ray

Easily debug CraftCMS projects

1638.4k](/packages/spatie-craft-ray)

PHPackages © 2026

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