back to home

yiisoft / yii2

Yii 2: The Fast, Secure and Professional PHP Framework

14,317 stars
6,813 forks
527 issues
PHPJavaScriptPLSQL

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing yiisoft/yii2 in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind-ai.vercel.app/repo/yiisoft/yii2)
Preview:Analyzed by RepoMind

Repository Summary (README)

Preview
<p align="center"> <a href="https://www.yiiframework.com/" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://www.yiiframework.com/image/yii_logo_dark.svg"> <source media="(prefers-color-scheme: light)" srcset="https://www.yiiframework.com/image/yii_logo_light.svg"> <img src="https://www.yiiframework.com/image/yii_logo_light.svg" alt="Yii Framework" width="400"> </picture> </a> </p>

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 Static Analysis codecov

Installation

[!IMPORTANT]

  • The minimum required PHP version of Yii is PHP 7.4.
  • It works best with PHP 8.

Documentation

Versions & PHP compatibility

[!NOTE] See "Release Cycle" at the website for detailed information about supported versions.

Community

Contributing

The framework is Open Source powered by an excellent community.

You may join us and:

Reporting Security issues

[!WARNING] Please do not report security vulnerabilities through public GitHub 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=for-the-badge&logo=yii)](https://www.yiiframework.com/)

Sponsoring

Support this project by becoming a sponsor or a backer.

Open Collective sponsors Open Collective backers