sky / yii2-user-switch
Sky User Switch Quick Login User
v1.0
2018-04-12 06:42 UTC
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-10-25 04:25:32 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'], ], ] ]