PHPackages                             konafets/typo3\_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. konafets/typo3\_debugbar

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

konafets/typo3\_debugbar
========================

Utilizes the PHP Debugbar to provide information of the system health to the frontend.

1.3.3(8y ago)3721.4k6[2 issues](https://github.com/Konafets/typo3_debugbar/issues)[2 PRs](https://github.com/Konafets/typo3_debugbar/pulls)GPL-2.0+PHP

Since Feb 14Pushed 6y ago7 watchersCompare

[ Source](https://github.com/Konafets/typo3_debugbar)[ Packagist](https://packagist.org/packages/konafets/typo3_debugbar)[ RSS](/packages/konafets-typo3-debugbar/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (9)Dependencies (2)Versions (10)Used By (0)

TYPO3 Debug Bar
===============

[](#typo3-debug-bar)

[![Latest Stable Version](https://camo.githubusercontent.com/70c5f8b9d661aedbd0c394fa0d8e923cd59035f167cca73fa786421e950a4619/68747470733a2f2f706f7365722e707567782e6f72672f6b6f6e61666574732f7479706f335f64656275676261722f762f737461626c65)](https://packagist.org/packages/konafets/typo3_debugbar) [![Total Downloads](https://camo.githubusercontent.com/4a12ae9fb748e0380c9c2ad8de3956865be135528d81cb2596d26bc17fc0a125/68747470733a2f2f706f7365722e707567782e6f72672f6b6f6e61666574732f7479706f335f64656275676261722f646f776e6c6f616473)](https://packagist.org/packages/konafets/typo3_debugbar) [![Latest Unstable Version](https://camo.githubusercontent.com/8593803d34491c16b4b5245d7d7bc7041116582185523b60623e3617192d5faf/68747470733a2f2f706f7365722e707567782e6f72672f6b6f6e61666574732f7479706f335f64656275676261722f762f756e737461626c65)](https://packagist.org/packages/konafets/typo3_debugbar)[![License](https://camo.githubusercontent.com/272fb0d3b4bc915fad5e9cd1931f7956b25633dbe2d56fd6faf671d2a46d2a74/68747470733a2f2f706f7365722e707567782e6f72672f6b6f6e61666574732f7479706f335f64656275676261722f6c6963656e7365)](https://packagist.org/packages/konafets/typo3_debugbar)

This is a package to integrate [PHP Debug Bar](http://phpdebugbar.com/) with TYPO3. It uses several hooks to include the assets and itself into frontend output. It bootstraps some Collectors to work with TYPO3 and implements a couple custom DataCollectors, specific for TYPO3.

Read [the documentation](http://phpdebugbar.com/docs/) for more configuration options.

[![Screenshot](https://raw.githubusercontent.com/konafets/typo3_debugbar/develop/Documentation/Images/SQLView.png)](https://raw.githubusercontent.com/konafets/typo3_debugbar/develop/Documentation/Images/SQLView.png)

**Info**: Use the DebugBar only in development. It can slow the application down (because it has to gather data). So when experiencing slowness, try disabling some of the collectors.

The extension comes with the default collectors:

- PhpInfoCollector: Show the PHP version
- MessagesCollector: Collects messages from within the Application and pushing them to the DebugBar
- TimeDataCollector: Here you can start and stop a timer. Default it times the Application. More in the Usage section
- MemoryCollector: Show the Memory usage
- ExceptionsCollector: Collects exceptions from withing the Application and pushing them to the DebugBar

And includes some custom collectors:

- InfoCollector: Show the same information like the Info pane of the Admin Panel
- MySqliCollector: Show all queries, including timing and the values of prepared statements
- Typo3Collector: Show the TYPO3 version, Locale and Environment
- AuthCollector: Show the username of the logged-in backend user
- SessionCollector: Show session data

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

[](#installation)

Require this package with composer. It is recommended to only require the package for development.

```
composer require konafets/typo3_debugbar --dev
```

Afterwards you need to activate the extension in the Extension Manager. The DebugBar is enabled by default and will be displayed to you if you are logged into the backend as an administrator.

Usage
-----

[](#usage)

The extension is configurable through the Extension Manager. There you can enable/disable the DebugBar as well as the DataCollectors.

[![Configuration](https://raw.githubusercontent.com/konafets/typo3_debugbar/develop/Documentation/Images/Configure.png)](https://raw.githubusercontent.com/konafets/typo3_debugbar/develop/Documentation/Images/Configure.png)

### Use it everywhere

[](#use-it-everywhere)

The Typo3DebugBar implements the `SingletonInterface`, therefore you can get the same instance via `debugbar()`. This opens the possibility to interact with the DebugBar from within TYPO3.

### Log Exceptions

[](#log-exceptions)

```
try {
    throw new Exception('foobar');
} catch (Exception $e) {
    debugBar()->addThrowable($e);
}
```

These will be shown in the Exception pane.

#### Add messages

[](#add-messages)

```
debugBar()->info($object);
debugBar()->error('Error!');
debugBar()->warning('Watch out…');
debugBar()->addMessage('Another message', 'mylabel');
```

[![MessagesPane](https://raw.githubusercontent.com/konafets/typo3_debugbar/develop/Documentation/Images/MessagesPane.png)](https://raw.githubusercontent.com/konafets/typo3_debugbar/develop/Documentation/Images/MessagesPane.png)

#### Add timers

[](#add-timers)

And start/stop timing:

```
debugBar()->startMeasure('render', 'Time for rendering');
debugBar()->stopMeasure('render');
debugBar()->addMeasure('now', TYPO3_START, microtime(true));
debugBar()->measure('My long operation', function() {
    // Do something…
});
debugbar_debug($value);
```

or even shorter:

```
startMeasure('render', 'Time for rendering');
stopMeasure('render');
addMeasure('now', TYPO3_START, microtime(true));
measure('My long operation', function() {
    // Do something…
});
```

### Database

[](#database)

This pane shows all issued queries of the connection with the name *Default*. Is there is no connection with this name, the first connection of the `ConnectionPool` will be used.

#### With placeholders

[](#with-placeholders)

Per default, the statements were shown as Prepared Statements, meaning the placeholders are inside the statement while the actual values are in a hidden table below each statement. To see them, click on the statement.

[![DatabasePane](https://raw.githubusercontent.com/konafets/typo3_debugbar/develop/Documentation/Images/DatabasePane.gif)](https://raw.githubusercontent.com/konafets/typo3_debugbar/develop/Documentation/Images/DatabasePane.gif)

#### With params

[](#with-params)

To render the values directly inside the statements, activate the option `with_params` in the extension settings.

Info: The extension uses the *connectToDB* hook to inject `Doctrine\DBAL\Logging\DebugStack` as a logger to the connection. At the end of the rendering process it retrieves the Logger and shows the logged queries. Its important to understand, that the extension adds `Doctrine\DBAL\Logging\DebugStack` in any case, even if its not shown in the frontend. This is due to log *all* queries from the very beginning ... but at that point the BE User is not initialized yet and its unclear if the DebugBar is enabled or not. Classical *Chicken-and-egg* problem.

### VarDump

[](#vardump)

Everybody knows the output of DebugUtility::var\_dump() ... and everybody knows that it breaks the layout. Lets move the output to the TYPO3 Debugbar. Use `Konafets\Typo3Debugbar\Overrides\DebuggerUtility::var_dump($variable)` and get an output like this:

[![VarDumpPane](https://raw.githubusercontent.com/konafets/typo3_debugbar/develop/Documentation/Images/VarDumpPane.png)](https://raw.githubusercontent.com/konafets/typo3_debugbar/develop/Documentation/Images/VarDumpPane.png)

Lifecycle
---------

[](#lifecycle)

As mentioned above the extension uses hooks. The following figure shows the usage during a request life cycle.

[![LifeCycle](Documentation/Images/LifeCycle.svg)](Documentation/Images/LifeCycle.svg)

Credits
-------

[](#credits)

The extension is heavily inspired by the [Laravel Debugbar](https://github.com/barryvdh/laravel-debugbar). Thanks for your good work [Barry vd. Heuvel](https://github.com/barryvdh). I also copied the idea of a ServiceProvider from Laravel.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 98.8% 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 ~4 days

Total

9

Last Release

2974d ago

Major Versions

0.1.0 → 1.0.02018-02-17

### Community

Maintainers

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

---

Top Contributors

[![Konafets](https://avatars.githubusercontent.com/u/363363?v=4)](https://github.com/Konafets "Konafets (80 commits)")[![peterkraume](https://avatars.githubusercontent.com/u/4234704?v=4)](https://github.com/peterkraume "peterkraume (1 commits)")

---

Tags

cmsdebugbardoctrine-dbaltypo3phpdebugbardebuggingcmstypo3

### Embed Badge

![Health badge](/badges/konafets-typo3-debugbar/health.svg)

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

###  Alternatives

[jbzoo/jbdump

Script for debug and dump PHP variables and other stuff. This tool is a nice replacement for print\_r() and var\_dump() functions.

211.1M3](/packages/jbzoo-jbdump)[snowair/phalcon-debugbar

Integrates PHP Debug Bar with Phalcon.

160123.3k1](/packages/snowair-phalcon-debugbar)[koriym/xdebug-mcp

Universal PHP Xdebug MCP Server with AI-optimized debugging support

4011.6k1](/packages/koriym-xdebug-mcp)[yusukezzz/slim-debugbar

4213.5k](/packages/yusukezzz-slim-debugbar)

PHPackages © 2026

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