PHP code example of sky / yii2-user-switch

1. Go to this page and download the library: Download sky/yii2-user-switch library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sky / yii2-user-switch example snippets


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

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

php composer.phar