Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
Y

yii2

> 编程语言
Open source

Yii 2: The Fast, Secure and Professional PHP Framework

14.3K stars0 likes3 views
WebsiteGitHub

About

Yii 2: The Fast, Secure and Professional PHP Framework

    </picture>
</a>

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. Installation

[!IMPORTANT]

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

Documentation

  • A Definitive Guide and a Class Reference cover every detail of the framework.
  • There is a PDF version of the Definitive Guide and a Definitive Guide Mirror which is updated every 15 minutes.
  • For Yii 1.1 users, there is Upgrading from Yii 1.1 to get an idea of what has changed in 2.0.

Versions & PHP compatibility

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

Community

  • Participate in discussions at forums.
  • Community Slack and Chat in IRC.
  • Follow us on Facebook, Twitter and GitHub.
  • Check other communities.

Contributing

The framework is Open Source powered by an excellent community.

You may join us and:

  • Report an issue
  • Translate documentation or messages
  • Give us feedback or start a design discussion
  • Contribute to the core code or fix bugs
  • Become a sponsor

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 in your README:
If your code is hosted at GitHub, you can place the following in your README.md file to get the badge:

Sponsoring

Support this project by becoming a sponsor or a backer.

Issues· 305 open

View all issuesOpen on GitHub
  • #21086

    Model::rules() return annotation incorrectly restricts array keys to integers

    Updated Sep 7, 2026
  • #21076

    The default .editorconfig forces 4-space indentation in Zed

    status:under discussionUpdated Aug 28, 2026
  • #21077

    ActiveRecord relation access on new model executes unnecessary query with 0=1 condition

    type:bugUpdated Aug 26, 2026
  • #21068

    PHP 8.6: `yii\web\SessionHandler` misses `create_sid()` (CI failure)

    Updated Aug 21, 2026
  • #21062

    Support for the HTTP QUERY method (RFC 10008)

    type:featureUpdated Aug 16, 2026
  • #21048

    FileValidator `checkExtensionByMimeType` does not work if `extensions` is not set

    status:ready for adoptionUpdated Aug 6, 2026
  • #19789

    Count query with group in class extends \yii\db\Query

    type:featureUpdated May 30, 2026
  • #20907

    Add a built-in `uuid` validator (`yii\validators\UuidValidator`)

    Updated May 29, 2026
  • #20838

    AssetManager copies entire bower-asset package (including executable test/script files) to web/assets

    type:bugUpdated May 29, 2026
  • #19787

    Feature request: aliased fixture dependences

    type:featureUpdated May 29, 2026

> Tags

PHPframeworkhacktoberfestphpphp-framework

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言