From the course: Exploring and Selecting PHP Frameworks

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Yii

Yii

The next framework I want to talk about is Yii. Yii is component-based framework and another MVC framework at that. Yii has a significant advantage over most other frameworks in that it has a very long support cycle. Much like most frameworks, Yii can be installed using composer create-project. And Yii has a specific CLI command in the root of the project. After this installation, I'll show that to you. It's just Yii. And the thing I like about that is, it's just an executable Shell script using PHP. Now, Yii goes one step further, and the example application, when opened in browser, it even includes a login example. This is a lot further of a head start than you get with other frameworks. The real secret sauce to Yii is called Gii or Gii. To enable, I need to uncomment allowed IP addresses in config web. And now, I'll add that to the URL. Sometimes it takes two loads with a Gii. Before I use any of the generators, I need to configure the database. So I'll fix the host. And back in…

Contents