You may need to know version number of the Yii2 framework currently used in your project. There are two methods to do this.
1 Yii Command Line
Go to root folder of your Yii2 framework. You can see a
yii file there. A version number will be printed by executing it in command line.
$ ./yii This is Yii version 220.127.116.11. # ... balabala ...
Note: You should run
yii.bat file under the same folder if you are using Windows system.
2 Yii API
$version = Yii::getVersion();
getVersion() function will return current version of the Yii framework.