sky/yii2-user-switch

Sky User Switch Quick Login User

Installs: 55

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/sky/yii2-user-switch

v1.0 2018-04-12 06:42 UTC

This package is auto-updated.

Last update: 2025-09-25 06:19:36 UTC


README

package for quick easy login when do development

Install Package

php composer.phar require sky/yii2-user-switch "*"

or add in composer.json

"sky/yii2-user-switch" : "*"

How To Use

add at config file config/web.php or common/config/main.php

[
  'modules' => [
    'userswicth' => [
      'class' => 'sky\userswitch\Module'
    ],
  ]
]

then go to http://sitename.com/userswitch or http://sitename.com?r=userswitch depend on your urlmanager settings

Configuration

  • gridColumns
  • dataProvider
  • ipAllow
  • likeAttributes

Example

[
  'modules' => [
    'userswicth' => [
      'class' => 'sky\userswitch\Module',
      'gridColumns' => ['id', 'username', 'email'],
      'likeAttributes' => ['email'],
    ],
  ]
]