Install yii 2.0.5

Hello for certain reasons, i need to install a previous version of yii2, specifically 2.0.5. How do i go about this?

From scratch or for existing project?

For existing project — adjust dependency in composer.json, run "composer update".

For new project:

composer global require "fxp/composer-asset-plugin:^1.3.1"

composer create-project --prefer-dist yiisoft/yii2-app-basic basic 2.0.5

Hello Sandmark

I already tried that and got the following error:

[InvalidArgumentException]

Could not find package yiisoft/yii2-app-basic with version 2.0.5.

create-project [-s|–stability STABILITY] [–prefer-source] [–prefer-dist] [–repository REPOSITORY] [–repository-url REPOSITORY-URL] [–dev] [–no-dev] [–no-custom-installers] [–no-scripts] [–no-progress] [–no-secure-http] [–keep-vcs] [–no-install] [–ignore-platform-reqs] [–] [<package>] [<directory>] [<version>]

Is there anything additional thing I should be doing?

Right. There’s no 2.0.5 for the application template. Install 2.0.4 then update yiisoft/yii2 dependency in composer.json to “2.0.5” and run “composer update”.