Yii is a PHP framework known for its security. On April 28, 2016, the then current version of Yii 2.0.7 got updated to 2.0.8( ongoing version). From its introduction to the domain of web development from December 3th, 2008 onward, Yii framework has undergone many updates and version changes. The recent update comprises of multiple bug fixes and addition of features to make Yii framework development more exciting for developers. The feedback which developers received from the Yii community has also included for making this recent update more valuable. Now, Yii 2.0.8 comes with some of the most important fixes and features that add up to its reliability and user-friendliness.
PHP 7 compatibility
The addition of Ubuntu LTS has increased the popularity of PHP 7, and to make Yii 2 more compatible with PHP 7 the recent version has been loaded with some fixes. Both the fixes are done with error handlers, especially the one for dealing with JSON errors. Yii 2.0.8 will be a perfect fit with PHP 7.
Brings back the Yii 1. 1 functionality
The earlier version of Yii 1.1 had a much-needed filter operators in GridView columns functionality. In Yii 2.0.8, developers can enable this functionality by using the Yii\db\Query::andFilterCompare(). Still this functionality misses out a clear documentation. The recent update also encompasses an addition of the event in the ActiveRecord.
Improvements to database schema and migrations
The update provides developers with an improved database schema builder which can be used at the time of describing migrations or at the time of altering the schema. It contributes to the addition and dropping of comments on tables and columns. This enhancement allows developers to indicate the position of the newly included column. In addition to it, developers can easily define the primary keys. The new update comes with a backing for generating foreign keys, and a valuable useTablePrefix option.
Forms and validations
Yii 2.0.8 gets the automatic setting of form enctype at the time of operating file uploads. Just include an exclamation mark in front of the attribute name for making it unprotected for mass assignment when doing field validations. Wildcards can be utilized in Yii 2.0.8 for specifying mimeTypes in FileValidator. The limitations that occurred while setting values with DateValidator was completely solved in the recent version. The update offers developers more handy options while dealing with forms and validations.
Security
Yii framework is mainly noted for its security, and in 2.0.8 the security components receive a bit more refinement. It takes only less number of bytes while running on FreeBSD, and the RNG performance is far more improved. The test coverage of security components receives valid improvements as well. These security updates cannot be considered as vital ones, but purposeful ones from the point of view of users.
Conclusion
The update brings other minor advancements like automatic dependency injections for configuration closures and additional command line options as well. All these included features offer more stability to Yii.2.0.8, and a must try upgrade for clients and professional Yii developers.