Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rockman84/yii2-user-switch
https://github.com/rockman84/yii2-user-switch
backend development login users yii2 yii2-extension
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/rockman84/yii2-user-switch
- Owner: rockman84
- License: apache-2.0
- Created: 2017-12-05T04:22:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-24T17:29:29.000Z (about 5 years ago)
- Last Synced: 2024-11-09T15:04:33.464Z (3 months ago)
- Topics: backend, development, login, users, yii2, yii2-extension
- Language: PHP
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yii2-user-switch
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
```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
```php
[
'modules' => [
'userswicth' => [
'class' => 'sky\userswitch\Module',
'gridColumns' => ['id', 'username', 'email'],
'likeAttributes' => ['email'],
],
]
]
```