Yii2 is a complete rewrite of the first version of one of the most famous PHP frameworks. It is a well-documented framework with a very active community.
Officially, we can find three types of support: a guide, for a complete navigation through framework topics at http://www.yiiframework.com/doc-2.0/guide-index.html, a reference to explore all classes that compose the framework at http://www.yiiframework.com/doc-2.0/index.html, and finally forum support at http://www.yiiframework.com/forum/.
In this chapter, we will go through the following:
Requirements and tools
Installing Yii2 with Composer
Application structure
Application properties
Common application components
Handling application events
Pattern MVC in Yii2
Naming convention
Configuring debug toolbar
Using logger
Example – hello world from scratch with the Yii basic template and bootstrap template