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