The Wayback Machine - https://web.archive.org/web/20191003174421/https://github.com/yiisoft/yii2
Skip to content
Yii 2: The Fast, Secure and Professional PHP Framework
PHP JavaScript TSQL PLSQL HTML Shell Other
Branch: master
Clone or download
My6UoT9 and samdark Fix #17853: Fix errors in ActiveField to be properly caught when PHP …
…7 is used

Changed __toString method to catch all PHP 7 error types. \Throwable is part of PHP 7+, so I left the \Exception in for older PHP.
Latest commit 23a8d04 Oct 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Use new colorful template [skip ci] Jul 2, 2019
build Abort dev app installation process if error occurred during cloning. (#… Jul 17, 2019
contrib/completion Fixes #16926: Fix shell autocompletion Dec 31, 2018
cs Enable `phpdoc_summary` rule in php-cs-fixer config (#14675) Aug 21, 2017
docs Remove Yii 2.1 reference from DAO docs (#17582) [skip ci] Oct 1, 2019
framework Fix #17853: Fix errors in ActiveField to be properly caught when PHP … Oct 3, 2019
tests Fix #17573: `Request::getUserIP()` security fix for the case when `Re… Oct 3, 2019
.appveyor.yml Closes #16411. Fix windows tests (#17380) Jun 19, 2019
.codeclimate.yml Disabled code lines check and methods count check for Codeclimate Feb 3, 2019
.dockerignore updated build Jan 24, 2017
.editorconfig Handled special .editorconfig case for markdown Sep 27, 2015
.eslintignore Add codeclimate config (#12452) Sep 3, 2016
.eslintrc Add codeclimate config (#12452) Sep 3, 2016
.gitattributes merge from yiisoft/yii2 Nov 14, 2018
.gitignore merge from yiisoft/yii2 Nov 14, 2018
.gitlab-ci.yml Build image in dockerized tests with BUILD_ARG (#15559) Feb 5, 2018
.php_cs Added configuration for headers in PHP files generated by `message/ex… Jul 10, 2017
.scrutinizer.yml Upgrade to newer scrutinizer engine (#17100) Feb 3, 2019
.travis.yml Fix #17459. Use MySQL docker container for testing (#17476) Jul 30, 2019
Dockerfile Build image in dockerized tests with BUILD_ARG (#15559) Feb 5, 2018
LICENSE.md merge from yiisoft/yii2 Nov 14, 2018
README.md Add open collective badges & links to README [skip ci] (#17239) Mar 30, 2019
ROADMAP.md Update ROADMAP.md Jul 16, 2019
code-of-conduct.md Update code-of-conduct.md Jun 26, 2016
composer.json Fixes #17313: Support jQuery 3.4 May 21, 2019
composer.lock merge from yiisoft/yii2 Nov 14, 2018
package.json merge from yiisoft/yii2 Nov 14, 2018
phpunit.xml.dist merge from yiisoft/yii2 Nov 14, 2018

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

Installation

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

Documentation

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

You can’t perform that action at this time.