You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
drlibra 6590feef0d Fixes #16192: `yii\db\Command::logQuery()` is now protected 1 year ago
.github Updated issue template [skip ci] 1 year ago
build Option --composerNoProgress for dev apps building (#15972) 1 year ago
contrib/completion Fixes #15988: Fixed bash completion 1 year ago
cs Enable `phpdoc_summary` rule in php-cs-fixer config (#14675) 2 years ago
docs Fixed typo (#16342) [skip ci] 1 year ago
framework Fixes #16192: `yii\db\Command::logQuery()` is now protected 1 year ago
tests Fixes #16104: Fixed `yii\db\pgsql\QueryBuilder::dropIndex()` to prepend index name with schema name 1 year ago
.appveyor.yml Fixes #16217: Fixed `yii\console\controllers\HelpController` to work well in Windows environment 1 year ago
.codeclimate.yml Code Climate PHPMD settings (#13139) 2 years ago
.dockerignore updated build 2 years ago
.editorconfig Handled special .editorconfig case for markdown 4 years ago
.eslintignore Add codeclimate config (#12452) 3 years ago
.eslintrc Add codeclimate config (#12452) 3 years ago
.gitattributes Add AppVeyor CI (#16123) 1 year ago
.gitignore Added `packages` dir used during build to gitignore 1 year ago
.gitlab-ci.yml Build image in dockerized tests with BUILD_ARG (#15559) 1 year ago
.php_cs Added configuration for headers in PHP files generated by `message/extract` command (#14417) 2 years ago
.scrutinizer.yml Typo in word 4 years ago
.travis.yml Fixes #16245: Fixed `__isset()` in `BaseActiveRecord` not catching errors 1 year ago
Dockerfile Build image in dockerized tests with BUILD_ARG (#15559) 1 year ago Fixes #16102: Removed a line that doesn't match BSD license text [skip ci] 1 year ago Update 1 year ago Update 3 years ago
composer.json #15899 Updated cebe/markdown composer constraint 1 year ago
composer.lock update composer.lock 1 year ago
package.json Disable timeout completely for JS tests (#13557) 2 years ago
phpunit.xml.dist Fixes for PHP 7.2 compatibility (#14959) 2 years ago

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 Code Coverage Scrutinizer Quality Score Code Climate


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




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:


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