PHPackages                             sbs/yii-debug-toolbar - 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. sbs/yii-debug-toolbar

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

sbs/yii-debug-toolbar
=====================

Debug panel for Yii 1.1 (Ported from Yii 2)

1.5.7(6y ago)043.7k↓50%1BSD-3-ClausePHPPHP &gt;=5.6

Since Nov 10Pushed 6y agoCompare

[ Source](https://github.com/koftikes/yii-debug-toolbar)[ Packagist](https://packagist.org/packages/sbs/yii-debug-toolbar)[ Docs](https://github.com/koftikes/yii-debug-toolbar)[ RSS](/packages/sbs-yii-debug-toolbar/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (8)Used By (0)

yii-debug-toolbar
=================

[](#yii-debug-toolbar)

Debug panel for Yii 1.1 (Ported from Yii 2).

[![Latest Stable Version](https://camo.githubusercontent.com/95f53cff5cb6cb6383ba0e7052b85ffa81645064d1e832665f4acc949b53dc79/68747470733a2f2f706f7365722e707567782e6f72672f7362732f7969692d64656275672d746f6f6c6261722f76657273696f6e2e737667)](https://packagist.org/packages/sbs/yii-debug-toolbar)[![Total Downloads](https://camo.githubusercontent.com/0eec751885841c2c94f0b7679d3d30b91134819a2812341d51def3b217912f8b/68747470733a2f2f706f7365722e707567782e6f72672f7362732f7969692d64656275672d746f6f6c6261722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/sbs/yii-debug-toolbar)

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

[](#installation)

This extension is available at packagist.org and can be installed via composer by following command:

`composer require --dev sbs/yii-debug-toolbar`.

To enable toolbar in your application add following lines to config:

```
return [
    'preload' => ['debug'],
    'components' => [
        'debug' => [
            'class' => 'Yii2Debug',
        ],
        'db' => [
            'enableProfiling' => true,
            'enableParamLogging' => true,
        ],
    ],
];
```

Configuration
-------------

[](#configuration)

You can customize debug panel behavior with this options:

- `enabled` - enable/disable debug panel.
- `allowedIPs` - list of IPs that are allowed to access debug toolbar. Default `['127.0.0.1', '::1']`.
- `accessExpression` - additional php expression for access evaluation.
- `logPath` - directory storing the debugger data files. This can be specified using a path alias. Default `/runtime/debug`.
- `historySize` - maximum number of debug data files to keep. If there are more files generated, the oldest ones will be removed.
- `highlightCode` - highlight code. Highlight SQL queries and PHP variables. This parameter can be set for each panel individually.
- `moduleId ` - module ID for viewing stored debug logs. Default `debug`.
- `showConfig` - show brief application configuration page. Default `false`.
- `hiddenConfigOptions` - list of un secure component options to hide (like login, passwords, secret keys). Default is to hide `username` and `password` of `db` component.
- `internalUrls` - use nice routes rules in debug module.
- `panels` - list of debug panels.

Each attached panel can be configured individually, for example:

```
'debug' => [
    'class' => 'Yii2Debug',
    'panels' => [
        'db' => [
            // Disable code highlighting.
            'highlightCode' => false,
            // Disable substitution of placeholders with values in SQL queries.
            'insertParamValues' => false,
        ],
    ],
]
```

Each panel have callback option `filterData`. You can define custom function for filtering input data before writing it in to debug log. It's useful when you need to hide something secret or just delete data from logs. Be careful with data structure manipulation. It can lead to log parsing errors.

Example:

```
'debug' => [
    'class' => 'Yii2Debug',
    'panels' => [
        'db' => [
            'filterData' => function($data) {
                // Your code here
                return $data;
            }
        ],
    ],
]
```

Creating own panels
-------------------

[](#creating-own-panels)

To create own debug panel you can extend class `Yii2DebugPanel`, for example:

```
class MyTestPanel extends Yii2DebugPanel
{
    /**
     * The name of panel printed in debugger
     */
    public function getName()
    {
        return 'Name';
    }

    /**
     * Return summary html with results of execution in current request.
     * Data is available through $this->data
     */
    public function getSummary()
    {
        return '';
    }

    /**
     * Return detailed html report with results of execution in current request.
     * Data is available through $this->data
     */
    public function getDetail()
    {
        return '';
    }

    /**
     * Return data required for storing in logs.
     */
    public function save()
    {
        return array();
    }
}
```

And attach this panel in config:

```
'panels' => [
    'test' => [
        'class' => 'path.to.panel.MyTestPanel',
        // ...
    ],
],
```

Disable individual panels
-------------------------

[](#disable-individual-panels)

To disable an individual panel, either a core or custom panel, set the `enabled` property in the panel config to `false`.

Example: Disable core `profiling` panel

```
'panels' => [
    'profiling' => [
        'enabled' => false,
        // ...
    ],
],
```

Variables dumping
-----------------

[](#variables-dumping)

With static method `Yii2Debug::dump()` you can dump any data and examine it later in debug log.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 84.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 ~135 days

Recently: every ~0 days

Total

7

Last Release

2299d ago

PHP version history (2 changes)1.5.2PHP &gt;=5.1.0

1.5.7PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d8acd1bf57b933c4d4762bb007b9080ec1900118bd2d8f288afa7c5adc8103a?d=identicon)[koftikes](/maintainers/koftikes)

---

Top Contributors

[![zhuravljov](https://avatars.githubusercontent.com/u/1656851?v=4)](https://github.com/zhuravljov "zhuravljov (99 commits)")[![koftikes](https://avatars.githubusercontent.com/u/8553840?v=4)](https://github.com/koftikes "koftikes (11 commits)")[![evgen-d](https://avatars.githubusercontent.com/u/2807102?v=4)](https://github.com/evgen-d "evgen-d (2 commits)")[![bashkarev](https://avatars.githubusercontent.com/u/3738201?v=4)](https://github.com/bashkarev "bashkarev (1 commits)")[![paulmory](https://avatars.githubusercontent.com/u/2988315?v=4)](https://github.com/paulmory "paulmory (1 commits)")[![kikimor](https://avatars.githubusercontent.com/u/5276246?v=4)](https://github.com/kikimor "kikimor (1 commits)")[![bkonetzny](https://avatars.githubusercontent.com/u/5451122?v=4)](https://github.com/bkonetzny "bkonetzny (1 commits)")[![chuprik](https://avatars.githubusercontent.com/u/802946?v=4)](https://github.com/chuprik "chuprik (1 commits)")

---

Tags

debugextensionyii

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/sbs-yii-debug-toolbar/health.svg)

```
[![Health](https://phpackages.com/badges/sbs-yii-debug-toolbar/health.svg)](https://phpackages.com/packages/sbs-yii-debug-toolbar)
```

###  Alternatives

[zhuravljov/yii2-debug

Yii debug toolbar

144501.1k4](/packages/zhuravljov-yii2-debug)[mmucklo/krumo

KRUMO - version 2.0 of print\_r(); and var\_dump(); (with new updates)

89168.0k6](/packages/mmucklo-krumo)[georgringer/backend-debug

Some debug helper for the TYPO3 backend

2032.4k1](/packages/georgringer-backend-debug)

PHPackages © 2026

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