Installing Yii2 in 3 Steps

Part 2: Downloading and Installing Yii 2

Please Note: If you haven’t yet installed please install it according to the instructions given in my previous post Installing Composer in 7 Steps as you can’t install without first installing the Composer.

Let’s start installing Yii 2 by following these 3 steps.

Step 1:

Press¬†win+R from key board to open “Run Dialog Box” and type ‘cmd’¬† in the “Open” text box and hit Enter Key.

Step 2:

change directory to “wamp/www” and type the following command in command prompt.

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

On my PC it will look some thing like this:

E:\wampwww>composer create-project --prefer-dist yiisoft/yii2-app-basic basic

It will take some time to complete the . So be patient and wait a bit until gets completed.

Step 3:

After installation we’ll check whether every thing is going right or not. So, open any browser and type the following address in address bar.


You should see the following page in your browser which means you’ve successfully installed Yii2 basic on your local server.

yii2_home_pageCongrats! You’ve successfully installed Yii2.

If you further want to learn about any other PHP Framework and if you don’t know how to install it, don’t worry, a list of famous is given as follows. Just click the link and start installing your next favorite PHP Framework.

Leave a Reply

Your email address will not be published. Required fields are marked *