yii2 README

The project's README from github.com/yiisoft/yii2. As one markdown file: README.md.

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

yii2 (yiisoft/yii2)

Searching Database…

14.3K ·GitHub
这是什么?Yii 2 是一个现代化的开源 PHP 框架,用于构建 Web 应用。它是一个稳固、快速且安全的基础,开箱即用,并带有合理的默认配置。
这是一个完整的框架,还是只是一个组件库?它是一个完整的 MVC 框架,旨在成为整个 PHP 应用的骨架,而不是独立的库。它可以根据你的需求进行调整和扩展。
我该如何让 Yii 2 项目运行起来?仓库本身没有快速启动命令,它会引导你前往 Definitive Guide,查看分步安装说明。
我需要什么版本的 PHP?Yii 2 要求 PHP 7.4 及以上版本,但建议在 PHP 8 上运行,效果最佳。
我能直接把 Yii 1.1 的代码搬到 Yii 2 里吗?不能。Yii 2 是重新编写的框架,并不能直接替换 Yii 1.1;项目提供了单独的升级指南,用于迁移 1.1 应用。
Yii 2 是为谁设计的?它面向希望获得预先配置好、可直接用于生产环境的 MVC 基础,而不想自己从零搭建各个组件的 PHP 开发者。
Yii 2 支持多种数据库吗?项目的 CI 流水线为 MariaDB、MySQL 和 MSSQL 分别运行了独立的工作流,表明该框架已在多种数据库后端上完成构建和测试。
有 Docker 支持吗?仓库中包含 Docker 配置,但没有附带 docker-compose 配置,因此你仍需自行组装多服务的运行环境。
在哪里可以找到完整文档?除了简短的 README,Yii 还提供了 Definitive Guide 和 Class Reference,包括 PDF 版本,以及每 15 分钟更新一次的镜像站点。
Creator
yiisoft
Size
89.7 MB
Stars
14.3K
Age
14y
Commits · 90 Days