PHPackages                             datlechin/flarum-debugbar - 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. datlechin/flarum-debugbar

ActiveFlarum-extension[Debugging &amp; Profiling](/categories/debugging)

datlechin/flarum-debugbar
=========================

Integrate Debugbar into Flarum for development debugging

v1.0.2(4mo ago)1105MITPHPCI passing

Since Mar 16Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/datlechin/flarum-debugbar)[ Packagist](https://packagist.org/packages/datlechin/flarum-debugbar)[ RSS](/packages/datlechin-flarum-debugbar/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Debugbar for Flarum
===================

[](#debugbar-for-flarum)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667) [![Latest Stable Version](https://camo.githubusercontent.com/f8a6f39b075a96d0d985c65226af96d8a43ed8eb490e575af52252b1bbdd4da4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461746c656368696e2f666c6172756d2d64656275676261722e737667)](https://packagist.org/packages/datlechin/flarum-debugbar) [![Total Downloads](https://camo.githubusercontent.com/dc3020843bd5fce7a9aaaa434be40a5204e8aa9f3e1bb492494451ad93a980d3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6461746c656368696e2f666c6172756d2d64656275676261722e737667)](https://packagist.org/packages/datlechin/flarum-debugbar)

Integrates [PHP Debugbar](https://github.com/php-debugbar/php-debugbar) into Flarum 2.x, providing a powerful in-browser debug toolbar for development. Inspect SQL queries, events, routes, authentication, cache operations, mail, and more.

> **Warning**: This is a development tool. Never enable debug mode on production sites.

[![Overview](screenshots/overview.png)](screenshots/overview.png)

[![Queries](screenshots/queries.png)](screenshots/queries.png)

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

[](#installation)

```
composer require datlechin/flarum-debugbar:"*"
```

Enable the extension in the admin panel, then ensure `debug` is set to `true` in your `config.php`:

```
'debug' => true,
```

Publish debugbar assets (usually automatic, but can be done manually):

```
php flarum debugbar:publish
```

Features
--------

[](#features)

### Debugbar Tabs

[](#debugbar-tabs)

TabDescriptionMessagesLog messages from the request lifecycleTimelineVisual breakdown of request timing (forum, handler, API calls)ExceptionsPHP exceptions and errorsFlarumFramework version, PHP version, database/queue/cache/mail/session driversQueriesAll SQL queries with bindings and execution timeRouteMatched route name, handler, HTTP method, parametersAuthCurrent user, groups, authentication method, session infoAPIJSON:API resource, endpoint, includes, filters, paginationSettingsAll Flarum settings grouped by extension (sensitive values masked)EventsAll events fired during the requestCacheCache hits, misses, writes, and deletesMailEmails sent/queued during the requestExtensionsAll enabled extensions with versions### Console Commands

[](#console-commands)

```
php flarum debugbar:publish   # Publish/repair debugbar assets symlink
php flarum debugbar:clear     # Clear stored request history
```

For Extension Developers
------------------------

[](#for-extension-developers)

Use `DebugbarHelper` to log messages and measure performance from your extension code:

```
use Datlechin\FlarumDebugbar\DebugbarHelper;

// Log messages
DebugbarHelper::info('Loading custom data');
DebugbarHelper::warning('Deprecated method called');
DebugbarHelper::error('Something went wrong');
DebugbarHelper::debug('Variable value: ' . $value);

// Measure execution time
DebugbarHelper::startMeasure('my-operation', 'My Heavy Operation');
// ... do work ...
DebugbarHelper::stopMeasure('my-operation');

// Add exceptions
DebugbarHelper::addException($e);
```

All methods are safe to call even when the debugbar is disabled, they silently no-op.

Links
-----

[](#links)

- [Flarum](https://flarum.org/d/38921)
- [GitHub](https://github.com/datlechin/flarum-debugbar)
- [Packagist](https://packagist.org/packages/datlechin/flarum-debugbar)
- [PHP Debugbar](https://github.com/php-debugbar/php-debugbar)

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance74

Regular maintenance activity

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

148d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5dca3124d040fb5f1e59100485f3a23e42e4e4b1c6d89c5d4cd3e79d95f574e?d=identicon)[Ngô Quốc Đạt](/maintainers/Ng%C3%B4%20Qu%E1%BB%91c%20%C4%90%E1%BA%A1t)

---

Top Contributors

[![datlechin](https://avatars.githubusercontent.com/u/56961917?v=4)](https://github.com/datlechin "datlechin (12 commits)")

---

Tags

debugprofilerdebugbardevelopmentflarum

### Embed Badge

![Health badge](/badges/datlechin-flarum-debugbar/health.svg)

```
[![Health](https://phpackages.com/badges/datlechin-flarum-debugbar/health.svg)](https://phpackages.com/packages/datlechin-flarum-debugbar)
```

###  Alternatives

[barryvdh/laravel-debugbar

PHP Debugbar integration for Laravel

19.3k136.0M822](/packages/barryvdh-laravel-debugbar)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.3k2.9M80](/packages/fruitcake-laravel-debugbar)[php-debugbar/php-debugbar

Debug bar in the browser for php application

4.4k32.8M80](/packages/php-debugbar-php-debugbar)[fruitcake/laravel-telescope-toolbar

Toolbar for Laravel Telescope based on Symfony Web Profiler

8051.8M6](/packages/fruitcake-laravel-telescope-toolbar)[flarum-lang/russian

Russian language pack for Flarum.

13129.1k](/packages/flarum-lang-russian)[recca0120/laravel-tracy

A Laravel Package to integrate Nette Tracy Debugger

387285.3k3](/packages/recca0120-laravel-tracy)

PHPackages © 2026

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