The high performing Yii PHP Framework has released an advanced version Yii Framework 2.0.8, a patch that contains around 100 minor new features and many bug fixes. Around 64 contributors in 300 commits, changed around 150 files to attain this upgraded version. The updates are quite an advancement when it comes to Yii development. This article discusses the most important and distinct features of the latest Yii Framework.

PHP7 Compatibility Issue Fixes

The latest advancement has taken care of PHP7 compatibility by coming up with a couple of fixes. One  is for the overall error handler and the other is for error handling with regards to JSON.  The inclusion of PHP7 into Ubuntu LTS, have made it a popular choice and Yii has updated these issues keeping that in mind.

Databases and ActiveRecord Updates

The well-known and popular functionality of the Yii 1.1, the filter operators in the GridView columns are back in the latest version. The Active Record classes had a new event being added that will now be able to trigger an EVENT_AFTER_REFRESH, every time after a record has been refreshed.

Schema and Migrations Enhancements

The community was able to come up with various enhancements with regards to the database schema builder in the upgraded Yii 2.0.8 version. Now the developers can use them while describing migrations or when they want to modify the schema for various other purposes.

Forms and Validation Updates

The new version automatically sets the necessary enctype for the forms while implementing file uploads. By adding an exclamation mark before the attribute name, you can now include a field for validation and mark it unsafe for mass assignment. This can be done when specifying validation rules. It is now possible for FileValidator to specify mimeTypes using wildcards. The latest version's DateValidator is fully compatible for validating time values without any limitations. 

Security Enhancements

Tom Worster's research and the productive discussions that followed, enabled the new patch update have notable security enhancements. They are Avoid reading more bytes than needed A better RNG performance More coverage with regards to test that ensures it works perfectly in different environments. The important factor to be noted here in that none of these are security concerns.

The other notable advancements in the Yii 2.0.8

The console controllers now accept short aliases for most of the options. This is an addition to the existing command line options. During configuration, dependencies can be automatically injected for closures. With an additional driver for PostgreSQL from Mutex, you now have another extra option to handle locking. A customized configuration in the advanced application allows you to install with vagrant for creation of a separate dev environment.

Conclusion

The latest version of Yii Framework has fixed quite a lot of minor issues that will help many Yii development services to work efficiently. Be active in our blog for further information on any future advancements.