Saturday, March 7, 2015

Intalling yii2 in windows using composer

In this tutorial, I will show you how to get started in yii2. First you need to choose which template to use. For this tutorial we will use Basic Application Template.

Before we can install via composer, we need to install composer in our windows computer.
A detailed tutorial can be found here
How to install composer in windows with php.exe
After Installing Composer, we can now start to use it by opening our  command terminal




















We need to change directory first using "cd" going to our uniservers path




 At this point, We are inside www folder, We will tell composer to install yii files here.

composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic namesample
 

 

 This may take a while, It will install all yii2 files inside our www folder.

After the installation process is done, We can now check our www folder.

\www\namesample is generated

 Your folder must look like this



















You can visit this page by running your uniserver and pointing it to

http://localhost/namesample/web/




If you can see this page, Then you have successfully created your Yii-powered application.


No comments:

Post a Comment