Yii framework


    Yii is an open source, object-oriented, component-based MVC PHP web application framework.

    The Yii project started on January 1, 2008, in order to fix some drawbacks of the framework. For example, in its early versions PRADO was slow when handling complex pages, had a steep learning curve and many controls were difficult to customize, while Yii was much more efficient at that time. In October 2008, after ten months of private development, the first alpha version of Yii was released. On December 3, 2008, Yii 1.0 was formally released.

    Yii features include:

    • Model-View-Controller (MVC) design pattern.
    • Generation of complex WSDL service specifications and management of Web service request handling.
    • Internationalization and localization (I18N and L10N). It supports message translation, date and time formatting, number formatting, and interface localization.
    • Layered caching scheme. It supports data caching, page caching, fragment caching and dynamic content. The storage medium of caching can be changed.
    • Error handling and logging. Errors are handled and presented more nicely, and log messages can be categorized, filtered and routed to different destinations.
    • Security measures include cross-site scripting (XSS) prevention, cross-site request forgery (CSRF) prevention, cookie tampering prevention, etc.
    • Unit and functionality testing based on PHPUnit and Selenium.
    • Automatic code generation for the skeleton application, CRUD applications, etc.
    • Code generated by Yii components and command line tools complies to the XHTML standard.
    • Carefully designed to work well with third-party code. For example, it's possible to use code from PEAR or Zend Framework in a Yii application.

    The Yii project has an extension repository consisting of user-contributed components.

    There was also an official extension library, zii, which was then merged with the core framework. It is bundled in every release since Yii version 1.1.0, and it includes additional behaviors and widgets, such as grids and jQuery UI.

    Yii comes with a collection of official documentation, such as a tutorial to develop a simple blog application, a guide that gives the description of every feature and a class reference which gives every detail about properties, methods and events.

    There's also a user-contributed documentation, most of which is available within the wiki on the official website.

    Yii is released under the New BSD License (3-clause license). This means that it's possible to use it for free to develop either open-source or proprietary Web applications.

    The text contained in the Official Yii Documentation is licensed to the public under the GNU Free Documentation License (GFDL). In general, the Yii documentation content can be copied, modified, and redistributed so long as the new version grants the same freedoms to others and acknowledges the authors of the Yii documentation article used.

    The logo is licensed under a Creative Commons Attribution-No Derivative Works 3.0 Unported License.

    Yii framework