” YII HELP US TO BUILD COMPLEX APPLICATIONS AND DELIVER THEM ON-TIME “
Yii is pronounced as Yee or [ji:], and is an acronym for “Yes It Is!“. This is often the accurate, and most concise response to inquires from those new to Yii:
Is it fast? … Is it secure? … Is it professional? … Is it right for my next project? … Yes, it is!
Yii is a free, open-source Web application development framework written in PHP5 that promotes clean, DRY design and en
courages rapid development. It works to streamline your application development and helps to ensure an extremely efficient, extensible, and maintainable end product.
Being extremely performance optimized, Yii is a perfect choice for any sized project. However, it has been built with sophisticated, enterprise applications in mind. You have full control over the configuration from head-to-toe (presentation-to-persistence) to conform to your enterprise development guidelines. It comes packaged with tools to help test and debug your application, and has clear and comprehensive documentation.
YII has the features like MVC,DAO/ActiveRecord,caching, authentication and role-based access control, scaffolding, testing and so on. It is light weight and has powerful caching support. Security is a part of this frame work. It includes input validation, output filtering, SQL injection and Cross-site scripting prevention.
YII is much faster because it is using lazy loading technique. It does not enable a functionality until or unless that has been invoked for the first time. For example it does not create an object unless the object is called for the first time. Other frameworks suffer from the performance hit because they would enable a functionality no matter it is used or not during a request.
YII has the extreme performance compared to other frame works. The YII team have generated a statistics for the performance of different frame works based on “request per second” which describes how many requests an application written in a framework can process per second. From the graph given below the RPS is for “request per second”. The higher number shows the higher performance level of the frame work. The performance is significantly high when we enable the PHP extension APC.
Security measures like Cross-site Scripting Prevention, Cross-site Request Forgery Prevention and Cookie Attack Prevention are enabled. Also YII includes client side and server side validation. We can just enable or disable the validation rule. It is not required to write separate validation rule for the inputs like other frameworks. YII has built-in authentication support. It also supports authorization via hierarchical role-based access control.
3. BEST CACHING FEATURES
YII provides various cache components to store cached data in different media. While comparing to other frame works YII has an excellent caching system. YII supports memcache, APC, XCache and DB based page and segment caching.
4. FRIENDLY WITH THIRD-PARTY CODE
YII is also designed to work with third party codes. You can use code from PEAR or Zend Framework in your YII application.
5. EASY TO EXTEND / CUSTOMIZE
It is very easy to edit or customize the YII based applications, since it has a very simple code structure. You can also use different kinds of extensions and widgets as per the requirements.
YII is purely object oriented, architecturally clean and very simple to extend it. If you are not experienced with the PHP frameworks and want to develop some simple applications, then maybe you should try an easier framework. I recommend to everyone who knows object oriented programming should pick up YII and try it once.