Home >PHP Framework >YII >what is yii framework
Yii is a high-performance PHP framework suitable for developing WEB 2.0 applications. Comes with rich features, including MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc., which can significantly shorten development time.
Yii is an open source, object-oriented, component-based MVC PHP web application framework. Yii is pronounced "Yee" or [ji:], which means "simplicity and evolution" in Chinese, and it can be an acronym for "Yes It Is!" (Recommended learning: yii tutorial )
## Yii was originally to solve the shortcomings of the Prado framework: slowly handling complex pages, steep learning curves and difficult to customize many controls. In October 2006, after ten months of development, the first alpha version of Yii was released, followed by the official release of version 1.00 in December 2008.
Yii 1.1 was released in January 2010, adding a form builder, relational activity record query, unit testing framework, and more. The Yii community continues to focus on the 1.1 branch with support for PHP7 and security fixes. The latest version is version 1.1.21 in April 2019.
In May 2011, the developers decided to use a new PHP version and fix architectural flaws, resulting in version 2.0. In May 2013, Yii 2.0 code became available, followed by the first stable version in October 2014. PHP7 is supported starting with version 2.0.9. The latest version, 2.0.19, was released in May 2019.
Yii features include:
Model-View-Controller (MVC) design pattern.
Generate complex WSDL service specifications and manage Web service request processing.
Internationalization and localization (I18N and L10N), including message conversion, date and time formatting, number formatting and interface localization.
Hierarchical caching solution supports data caching, page caching, fragment caching and dynamic content. The cached storage medium can be changed.
Error handling and logging. Log messages can be categorized, filtered and routed to different destinations.
Security measures include protection against cross-site scripting (XSS), cross-site request forgery (CSRF) and cookie tampering.
Unit and functional testing based on PHPUnit and Selenium.
Automatically generate code for skeleton applications and CRUD applications through Gii tools.
Yii components and command line tools generate code that is XHTML compliant.
Designed to work with third-party code. For example, you can include code from PEAR or Zend Framework.
The above is the detailed content of what is yii framework. For more information, please follow other related articles on the PHP Chinese website!