The developer teams of Yii Framework has just officially released the version 2.0 to the public. Yii 2.0 is a complete rewrite over the previous version Yii 1.1. The goal of this rewrite is in order to build a state-of-the-art PHP framework by keeping the original simplicity and extensibility of Yii while adopting the latest technologies and features to make it even better.
Some of its Highlights
1. Adopting Standards and Latest Technologies
Yii 2.0 adopts PHP namespaces and traits, PSR standards, Composer and Bower. All these make the framework more refreshing and interoperable with other libraries.
2. Solid Foundation Classes
Yii 2.0 implements the dependency injection container and service locator. It makes the applications built with Yii more customizable and testable.
Yii 2.0 helps you to write more secure code. It has built-in support to prevent SQL injections, XSS attacks, CSRF attacks, cookie tampering, etc. Security experts Tom Worster and Anthony Ferrara even helped us review and rewrite some of the security-related code.
Working with databases has never been easier. Yii 2.0 improves the performance of Active Record and unifies the syntax for querying data via query builder and Active Record.
5. RESTful APIs
With a few lines of code, Yii 2.0 lets you to quickly build a set of fully functional RESTful APIs that comply to the latest protocols.
6. Authentication and Authorization
Yii 2.0 provides the ability of the authentication via external credentials providers. It supports OpenID, OAuth1 and OAuth2 protocols.
Yii 2.0 comes with a rich set of user interface elements, called widgets, to help you quickly build interactive user interfaces. It has built-in support for Bootstrap widgets and jQuery UI widgets. It also provides commonly used widgets such as pagers, grid view, list view, detail, all of which make Web application development a truly speedy and enjoyable process.
Yii 2.0 provides many useful helper classes to simplify some common tasks. For example, the Html helper includes a set of methods to create different HTML tags, and the Url helper lets you more easily creates various URLs
9. Template Engines
Yii 2.0 uses PHP as its default template language. It also supports Twig and Smarty through its template engine extensions. And it is also possible for you to create extensions to support other template engines.
Yii 2.0 strengthens the testing support by integrating Codeception and Faker. It also comes with a fixture framework which coupled with DB migrations, allows you to manage your fixture data more flexible.
More details about Yii 2.0 can be found here