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

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

biskyt/yii-debug-toolbar
========================

Debug panel for Yii 1.1 (Ported from Yii 2), updated for PHP 8.1+

1.5.9(1y ago)0100.4k—3.7%BSD-3-ClausePHPPHP &gt;=7.4

Since May 13Pushed 1y agoCompare

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

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

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

[](#yii-debug-toolbar)

Debug panel for Yii 1.1 (Ported from Yii 2). Updated to fix compatability with PHP8.1+ Forked from

[![Latest Stable Version](https://camo.githubusercontent.com/ffd3dde3540b179898f3d1fefb6c908b8188f3840d8ee70f681fef78a0e0c5c4/68747470733a2f2f706f7365722e707567782e6f72672f6269736b79742f7969692d64656275672d746f6f6c6261722f76657273696f6e2e737667)](https://packagist.org/packages/biskyt/yii-debug-toolbar)[![Total Downloads](https://camo.githubusercontent.com/e9b3ee13434997a00cd0547876b5572e32698da9cc96a1f59dd4bdbbe968775a/68747470733a2f2f706f7365722e707567782e6f72672f6269736b79742f7969692d64656275672d746f6f6c6261722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/biskyt/yii-debug-toolbar)

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

[](#installation)

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

`composer require --dev biskyt/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

Maintenance38

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80.5% 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 ~206 days

Total

2

Last Release

529d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/18d9f41ef5c75dee5da43a8d0a1c903a725fedde714a369300437f9e8372e8cf?d=identicon)[biskyt](/maintainers/biskyt)

---

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)")[![biskyt](https://avatars.githubusercontent.com/u/8448094?v=4)](https://github.com/biskyt "biskyt (5 commits)")[![evgen-d](https://avatars.githubusercontent.com/u/2807102?v=4)](https://github.com/evgen-d "evgen-d (2 commits)")[![paulmory](https://avatars.githubusercontent.com/u/2988315?v=4)](https://github.com/paulmory "paulmory (1 commits)")[![splatEric](https://avatars.githubusercontent.com/u/2445288?v=4)](https://github.com/splatEric "splatEric (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)")[![bashkarev](https://avatars.githubusercontent.com/u/3738201?v=4)](https://github.com/bashkarev "bashkarev (1 commits)")

---

Tags

debugextensionyii

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/biskyt-yii-debug-toolbar/health.svg)](https://phpackages.com/packages/biskyt-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)
