The Yii2 framework is a high-performance PHP5 web application development framework. A simple command line tool yiic can quickly create a web application code framework. Developers can add business logic based on the generated code framework to quickly complete application development.
Install
The minimum PHP required for Yii is PHP 5.4.
It works best with PHP 8.
Advantages and disadvantages of YII2 framework
advantage
1. Pure OOP
2. Used for large-scale web applications
3. The model is easy to use
4. The development speed is fast and the running speed is also fast. Excellent performance and feature-rich
5. Use command line tools.
6. Support composer package management tool
7. GII is quite good. It simplifies the development process and can generate most codes. The efficiency of developing the backend is quite high.
shortcoming
1. There is less guidance and consideration on the Model layer.
2. Few document examples
3. Too much English
4. It requires proficiency in PHP technology and proficiency in OOP programming!
5. View is not an ideal view. The ideal view may only be html code and will not involve PHP code.
6. With the trend of complete separation of front-end and back-end, the coupling of yii2 front-end and back-end is still a bit heavy.