PHPackages                             cr0t/yiidebugtb - 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. cr0t/yiidebugtb

AbandonedArchivedLibrary

cr0t/yiidebugtb
===============

542.2k7[2 PRs](https://github.com/cr0t/yiidebugtb/pulls)PHP

Since Feb 10Pushed 7y ago3 watchersCompare

[ Source](https://github.com/cr0t/yiidebugtb)[ Packagist](https://packagist.org/packages/cr0t/yiidebugtb)[ RSS](/packages/cr0t-yiidebugtb/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii Debug Toolbar Yii Framework Extension
=========================================

[](#yii-debug-toolbar-yii-framework-extension)

This extension is very useful in the development stage of project. It helps you to get info about PHP environment, application, queries logs, benchmarking with a simple little toolbar at the top of the page.

It is a recreated Symfony's developer toolbar. First idea and very first implementation was my, but this version mostly implemented by Eduard Kuleshov.

Usage
=====

[](#usage)

Requirements
------------

[](#requirements)

- Yii 1.0 or above (it's not tested with Yii 2.x compatibility, check it by yourself, please)

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

[](#installation)

- Extract the release file under protected/extensions

\##Usage

main.php configuration file update:

```
// ...
// autoloading model and component classes
'import'=>array(
  'application.models.*',
  'application.components.*',
  'application.extensions.yiidebugtb.*', // our extension
),
// ...
'log'=>array(
  'class'=>'CLogRouter',
    'routes'=>array(
      array(
        'class'=>'CFileLogRoute',
        'levels'=>'error, warning, trace',
      ),
      // toolbar configuration (see available options below)
      array(
        'class'=>'XWebDebugRouter',
        'config'=>'alignLeft, opaque, runInDebug, fixedPos, collapsed, yamlStyle, dbProfiling',
        'levels'=>'error, warning, trace, profile, info',
        'allowedIPs'=>array('127.0.0.1','::1','192.168.1.54','192\.168\.1[0-5]\.[0-9]{3}'),
      ),
    ),
),
// ...
```

\###Options reference

- `'alignLeft'` - debug toolbar will be aligned to the top left corner of browser window;
- `'opaque'` - makes the debug toolbar almost invisible when it’s minimized;
- `'runInDebug'` - show the debug toolbar only if Yii application running in DEBUG MODE (see index.php for details);
- `'fixedPos'` - makes the debug toolbar sticky with browser window, not document!;
- `'collapsed'` - show the debug toolbar minimized by default;
- `'yamlStyle'` - show configuration report in Yaml or PHP-array style.
- `'dbProfiling'` - enable profiling of DB queries and param logging. (see `CDbConnection::$enableProfiling` and `CDbConnection::$enableParamLogging`)

Also there is an additional security feature you may need - `'allowedIPs'` option. This option holds the array of IP addresses of all machines you need to use in development cycle. So if you forget to remove `YII_DEBUG` from bootstrap file for the production stage, your client don't see the toolbar anyway.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76% 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.

### Community

Maintainers

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

---

Top Contributors

[![cr0t](https://avatars.githubusercontent.com/u/113878?v=4)](https://github.com/cr0t "cr0t (19 commits)")[![egorrishe](https://avatars.githubusercontent.com/u/4169621?v=4)](https://github.com/egorrishe "egorrishe (4 commits)")[![canni](https://avatars.githubusercontent.com/u/385754?v=4)](https://github.com/canni "canni (2 commits)")

### Embed Badge

![Health badge](/badges/cr0t-yiidebugtb/health.svg)

```
[![Health](https://phpackages.com/badges/cr0t-yiidebugtb/health.svg)](https://phpackages.com/packages/cr0t-yiidebugtb)
```

PHPackages © 2026

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