Chapter 12. Performance and Security
Out of the box, Yii2 is an both a performant and efficient PHP framework. It was designed to be as fast as possible while still providing a feature-rich toolbox to work with. There are many factors that determine the performance of our application that can negatively affect the performance of our application, such as long running queries and data generation. In this chapter, we'll cover several ways in which we can optimize and fine-tune Yii2 so that our applications remain performant. We'll also cover several important aspects of securing our code.