Yii Features

PHP has a lot of frameworks. Yii is one of them. New version Yii2 has a lot of new features. Some of the features are discussed here.

Easy InstallationYii can be downloaded either using Composer or manually. It is advisable to use it using Composer as it saves a lot of time.

Modern Technologies UseYii framework is completely based on OOPS concepts and uses some advanced features of PHP. All classes are namespaced in Yii, which means it allows to take advantage of their autoloader.

Highly ExtensibleEvery part of Yii framework is highly extensible. It also allows the use of third-parties libraries by installing them with Composer then configuring and including them in autoloader.

Testing FeatureYii2 is integrated with Codecepetion. Codeception is a PHP testing framework that simplifies the process of creating unit, functional and acceptance tests for your application.Codeception makes the testing configuration of an application simple.

SecuritySecurity is an important feature for an application and Yii provides a great feature for security. It has several security components that have several methods which helps to create a more secure application.

Less Time for DevelopmentTo develop an application a lot of tasks are repeated more than once. Yii provide some tools that helps to reduce your time on these kind of tasks.One of the tool is Gii, which quickly creates a web template for:

  • CRUD
  • Models
  • Controllers
  • Extensions
  • Forms

PerformanceYii creators have declared it very clearly that delivering high performance is their goal. It provides several tools to enhance the speed of application.Yii offers a higher rate for receiving request per second. And has a less peak memory usage.

MVC PatternIt supports model-view-controller pattern to separate the codes.

Modelling DatabaseDatabase data can be modeled in terms of objects instead of long SQL statements.

Error Handling & LoggingLogged messages can be categorized and routed to the different destinations.

Form Input and ValidationIt has a set of validators and numerous helper methods which simplifies the task.

SecurityIt is equipped with many security measures to prevent from external attacks.

Layered Caching SystemIt supports data caching, fragment caching, dynamic content and page caching. You can also change the storage medium of cache without touching the application code.

Automatic Code GenerationIt provides a highly extensible code generation tools that will generate the code for you very quickly such as CRUD and form.

Detailed Documentationyou will get a detailed documentation stating every method or property used in Yii.

Skinning and ThemeingIt provides skinning and themeing mechanism that allows you to quickly switch outlook of a Yii generated website.