Skip to content

yiisoft/yii2

Folders and files

NameName
Last commit message
Last commit date
Dec 11, 2024
Dec 16, 2024
Feb 13, 2025
Aug 3, 2022
Jan 6, 2025
Mar 20, 2025
Feb 27, 2025
Mar 20, 2024
Feb 3, 2019
Jan 24, 2017
Sep 27, 2015
Sep 3, 2016
Aug 3, 2022
Oct 24, 2023
May 30, 2024
Jul 2, 2020
Mar 20, 2024
May 4, 2023
Apr 26, 2018
Mar 27, 2024
Jul 16, 2019
Jul 22, 2021
Nov 4, 2024
Nov 4, 2024
Jun 3, 2024
Mar 19, 2024
Mar 20, 2024

Yii Framework

Yii 2 is a modern framework designed to be a solid foundation for your PHP application.

It is fast, secure and efficient and works right out of the box pre-configured with reasonable defaults. The framework is easy to adjust to meet your needs, because Yii has been designed to be flexible.

Latest Stable Version Total Downloads Build Status codecov Scrutinizer Quality Score

Installation

  • The minimum required PHP version of Yii is PHP 7.3.
  • It works best with PHP 8.
  • Follow the Definitive Guide in order to get step by step instructions.

Documentation

Versions & PHP compatibility

Yii2 Version PHP version Development status EOL ¹
<= 2.0.49.* >= 5.4, <= 8.3 security fixes only 23 Nov 2026 ³
>= 2.0.50 >= 7.3, <= 8.4 bug fixes and security fixes only bugfixes till 23 Nov 2026 ³, security fixes till 21 Nov 2027 ⁴
>= 2.2.0 ² >= 8.1 active development

¹ All mentioned dates may be subject to change and no rights can be derived from them.
² Note: Yii 2.1 was skipped, Yii 2.2 has not yet been released.
³ PHP 8.3 EOL date.
Expected PHP 8.4 EOL date.

Community

Contributing

The framework is Open Source powered by an excellent community.

You may join us and:

Reporting Security issues

Please refer to a special page at the website describing proper workflow for security issue reports.

Directory Structure

build/               internally used build tools
docs/                documentation
framework/           core framework code
tests/               tests of the core framework code

Spreading the Word

Acknowledging or citing Yii 2 is as important as direct contributions.

In presentations

If you are giving a presentation or talk featuring work that makes use of Yii 2 and would like to acknowledge it, we suggest using our logo on your title slide.

In projects

If you are using Yii 2 as part of an OpenSource project, a way to acknowledge it is to use a special badge in your README:

Yii2

If your code is hosted at GitHub, you can place the following in your README.md file to get the badge:

[![Yii2](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat)](https://www.yiiframework.com/)

Sponsoring

Support this project by becoming a sponsor or a backer.

OpenCollective sponsors OpenCollective backers