Set up a Yii 2.0 Application in Windows

Owais Ali
4 min readNov 7, 2018
PHP Yii 2.0 Framework

In this article we are going to setup a Yii 2.0 Application on local PC. We will setup Yii 2.0 advanced application on Windows alongwith:

  • Connection with MySQL
  • Enabling Pretty URLs
  • Virtual Hosts (for backend and frontend)
  • Installing AdminLTE Theme

Note: This article contains affiliate links, which means if you purchase using those links I will get a small commission with no extra cost to you.

Installing the project

Let’s install the application in our PC using Composer (you should install composer first if you don’t have already).

Head over to your xampp/htdocs folder and run this command in cmd:

composer create-project --prefer-dist yiisoft/yii2-app-advanced ows-yii2-application

The application will be installed in ‘ows-yii2-application’ directory/folder. You can rename it according to your project name

--

--

Owais Ali
Owais Ali

Written by Owais Ali

I am a Software Engineer, Youtuber and a teacher. View my online profile at https://ows-ali.github.io