PHP code example of shoxabbos / yii2-langselect

1. Go to this page and download the library: Download shoxabbos/yii2-langselect 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/ */

    

shoxabbos / yii2-langselect example snippets


'bootstrap' => [
    [
        'class' => '\shoxabbos\langselect\LanguageSelector',
        'supportedLanguages' => ['en', 'ru'],
    ],
],

http://localhost/site/index?lang=en
http://localhost/site/index?lang=ru

php composer.phar