PHPackages                             microinginer/yii2-debug-user-switch - 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. microinginer/yii2-debug-user-switch

ActiveYii2-extensions[Debugging &amp; Profiling](/categories/debugging)

microinginer/yii2-debug-user-switch
===================================

User switcher

v1.0.0(9y ago)510.7k↓50%[2 issues](https://github.com/microinginer/yii2-debug-user-switch/issues)[1 PRs](https://github.com/microinginer/yii2-debug-user-switch/pulls)MITPHP

Since Oct 17Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/microinginer/yii2-debug-user-switch)[ Packagist](https://packagist.org/packages/microinginer/yii2-debug-user-switch)[ RSS](/packages/microinginer-yii2-debug-user-switch/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

yii2-debug-user-switch
======================

[](#yii2-debug-user-switch)

This extension for yii2-debug. Use only development environment.

Install
-------

[](#install)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist microinginer/yii2-debug-user-switch:"dev-master"

```

or add

```
"microinginer/yii2-debug-user-switch":"dev-master"
```

to the require section of your composer.json file.

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

[](#configuration)

```
// config/web.php

if (YII_ENV_DEV) {
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = [
        'class' => 'yii\debug\Module',
        ...
        'panels' => [
            'switchUser' => [
                'class' => 'microinginer\switchUser\SwitchPanel',
                'modelClass' => '\app\models\User',
                /*
                'queryCondition' => function (\yii\db\ActiveQuery &$query, \yii\db\ActiveRecord $model) {
                    $query->andWhere('suborg_id IS NOT NULL');
                },
                'gridViewColumns' => [
                    'full_name',
                    [
                        'attribute' => 'org.name',
                        'label' => 'Organization',
                    ],
                    [
                        'label' => Yii::t('app', 'Roles'),
                        'value' => function ($model) {
                            $roles = '';
                            foreach (Yii::$app->authManager->getRolesByUser($model->id) as $role) {
                                $roles .= ', ' . $role->name;
                            }
                            $roles = substr($roles, 1);
                            return $roles;
                        }
                    ],
                ],
                */
            ]
        ],
        ...
    ];
}
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Unknown

Total

1

Last Release

3500d ago

### Community

Maintainers

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

---

Tags

debuguseryii2switchswitch-userdebug-addon

### Embed Badge

![Health badge](/badges/microinginer-yii2-debug-user-switch/health.svg)

```
[![Health](https://phpackages.com/badges/microinginer-yii2-debug-user-switch/health.svg)](https://phpackages.com/packages/microinginer-yii2-debug-user-switch)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[yii2tech/illuminate

Yii2 to Laravel Migration Package

11315.1k](/packages/yii2tech-illuminate)[demi/backup

Basic Yii2 site backup methods

2020.8k](/packages/demi-backup)

PHPackages © 2026

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