Install Composer

curl -sS https://getcomposer.org/installer | php

mv composer.phar /usr/local/bin/composer

  • Run Composer if you have already installed itcomposer self-updateJust update the composer

Install Yii

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

After executing the above command, the first YII project, BASIC, is created. Let’s get it running by executing the following two lines

cd basic

php yii serve --port=888

After executing, open your browser and enter the address below

http://localhost:8080/