Question: yii2 how to install extension?
Answer: Download archive extension file of needed version from Github. Open composer.json. Find PSR-4 autoload section and remember it for e.g. kmit/select2. Extract files to corresponding folder in vendor folder, like vendor/kmit/select2. Add following code to vendor/composer/autoload_psr4.php.