From the course: MVC Frameworks for Building PHP Web Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Yii setup

Yii setup

From the course: MVC Frameworks for Building PHP Web Applications

Start my 1-month free trial

Yii setup

- [Instructor] In this movie, we're going to go over how to get set up and started in the Yii framework. Because Yii uses Composer, we can do this all directly from the command line. So I'm going to go to my command line interface. Remember that I've already done a number of things to get my environment set up, and we talked about that in the first unit of this course. So make sure you've set this up, either in your Mac or Windows environment. I'm currently in my home directory in my Mac. I want to first switch into my documents directory. Now keep in mind, you can put Yii wherever you want to on your computer. Since I'm using the PHP Devserver, I can just keep it in my documents directory and it's easy to keep track of. But if you're using MAMP or WAMP, you might need to put this in the web root of that server. So let's go ahead and create a new directory, and go into the directory. So now I can use Composer to install. I'm going to go ahead and type composer create-project, going to…

Contents