PHPackages                             yiisoft/yii2-dev - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. yiisoft/yii2-dev

ActiveYii2-extension[Framework](/categories/framework)

yiisoft/yii2-dev
================

Yii PHP Framework Version 2 - Development Package

2.0.54(4mo ago)14.3k100.8k↓20.3%6.8k[378 issues](https://github.com/yiisoft/yii2/issues)[108 PRs](https://github.com/yiisoft/yii2/pulls)20BSD-3-ClausePHPPHP &gt;=7.4.0CI passing

Since Dec 1Pushed 2mo ago1.0k watchersCompare

[ Source](https://github.com/yiisoft/yii2)[ Packagist](https://packagist.org/packages/yiisoft/yii2-dev)[ Docs](https://www.yiiframework.com/)[ GitHub Sponsors](https://github.com/yiisoft)[ Fund](https://opencollective.com/yiisoft)[ RSS](/packages/yiisoft-yii2-dev/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (90)Used By (20)Security (10)

 [    ![Yii Framework](https://camo.githubusercontent.com/f390171a839a7620dea19acb5fc1fb87f9226e65910c577f99803347ce48336a/68747470733a2f2f7777772e7969696672616d65776f726b2e636f6d2f696d6167652f64657369676e2f6c6f676f2f796969335f66756c6c5f666f725f6c696768742e737667)  ](https://www.yiiframework.com/)

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](https://camo.githubusercontent.com/c44aca3a2f8ccf03f4560cf379a6d362b54f7fd44a1208b714c61c4bbfc2d0ee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796969736f66742f796969322e7376673f6c6f676f3d7061636b6167697374267374796c653d666f722d7468652d6261646765266c6162656c3d537461626c65)](https://packagist.org/packages/yiisoft/yii2)[![Total Downloads](https://camo.githubusercontent.com/effa207c873cd73f1758946a15d57aa42de2c57ce9439512e38b3eff2e1b2be8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f796969736f66742f796969322e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/yiisoft/yii2)[![Build Status](https://camo.githubusercontent.com/def10e3319df06209325ccd9beb4469706dc5ef30a47e192337052641dabbe23/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f796969736f66742f796969322f6275696c642e796d6c3f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562266c6162656c3d4275696c64)](https://github.com/yiisoft/yii2/actions/workflows/build.yml)[![Static Analysis](https://camo.githubusercontent.com/7844ea46632581337882d7bda4867b2968031863992c657ab05dab53a562d95e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f796969736f66742f796969322f7374617469632e796d6c3f7374796c653d666f722d7468652d6261646765266c6162656c3d537461746963266c6f676f3d676974687562)](https://github.com/yiisoft/yii2/actions/workflows/static.yml)[![codecov](https://camo.githubusercontent.com/832e1e239b71e1ef4ed89a49b1a34f2abd7f484327c67636763c90bf79851149/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f796969736f66742f796969322e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d636f6465636f76266c6f676f436f6c6f723d7768697465266c6162656c3d436f6465636f76)](https://codecov.io/gh/yiisoft/yii2)

Installation
------------

[](#installation)

Important

- The minimum required [PHP](https://www.php.net/) version of Yii is PHP `7.4`.
- It works best with PHP `8`.

- [Follow the Definitive Guide](https://www.yiiframework.com/doc-2.0/guide-start-installation.html)in order to get step by step instructions.

Documentation
-------------

[](#documentation)

- A [Definitive Guide](https://www.yiiframework.com/doc/guide/2.0) and a [Class Reference](https://www.yiiframework.com/doc/api/2.0) cover every detail of the framework.
- There is a [PDF version](https://www.yiiframework.com/doc/download/yii-guide-2.0-en.pdf) of the Definitive Guide and a [Definitive Guide Mirror](http://stuff.cebe.cc/yii2docs/) which is updated every 15 minutes.
- For Yii 1.1 users, there is [Upgrading from Yii 1.1](https://www.yiiframework.com/doc/guide/2.0/en/intro-upgrade-from-v1)to get an idea of what has changed in 2.0.

Versions &amp; PHP compatibility
--------------------------------

[](#versions--php-compatibility)

Note

See ["Release Cycle" at the website](https://www.yiiframework.com/release-cycle) for detailed information about supported versions.

Community
---------

[](#community)

- Participate in [discussions at forums](https://www.yiiframework.com/forum/).
- [Community Slack](https://join.slack.com/t/yii/shared_invite/MjIxMjMxMTk5MTU1LTE1MDE3MDAwMzMtM2VkMTMyMjY1Ng) and [Chat in IRC](https://www.yiiframework.com/chat/).
- Follow us on [Facebook](https://www.facebook.com/groups/yiitalk/), [Twitter](https://twitter.com/yiiframework)and [GitHub](https://github.com/yiisoft/yii2).
- Check [other communities](https://github.com/yiisoft/yii2/wiki/communities).

Contributing
------------

[](#contributing)

The framework is [Open Source](LICENSE.md) powered by [an excellent community](https://github.com/yiisoft/yii2/graphs/contributors).

You may join us and:

- [Report an issue](docs/internals/report-an-issue.md)
- [Translate documentation or messages](docs/internals/translation-workflow.md)
- [Give us feedback or start a design discussion](https://www.yiiframework.com/forum/index.php/forum/42-general-discussions-for-yii-20/)
- [Contribute to the core code or fix bugs](docs/internals/git-workflow.md)
- [Become a sponsor](#sponsoring)

### Reporting Security issues

[](#reporting-security-issues)

Warning

Please do not report security vulnerabilities through public GitHub issues.

Please refer to a [special page at the website](https://www.yiiframework.com/security/)describing proper workflow for security issue reports.

### Directory Structure

[](#directory-structure)

```
build/               internally used build tools
docs/                documentation
framework/           core framework code
tests/               tests of the core framework code

```

### Spreading the Word

[](#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](https://www.yiiframework.com/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](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=for-the-badge&logo=yii) in your README:

[![Yii2](https://camo.githubusercontent.com/289983c1dde520aac09b2e2c1456588e33a6551e5353146255ef287aef12483e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d5969695f4672616d65776f726b2d677265656e2e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d796969)](https://www.yiiframework.com/)

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

[](#sponsoring)

Support this project by becoming a sponsor or a backer.

[![Open Collective sponsors](https://camo.githubusercontent.com/3967414ae82a972e7a552bf7698675d2158792c874a8c2df4a55ea66568ac857/68747470733a2f2f696d672e736869656c64732e696f2f6f70656e636f6c6c6563746976652f73706f6e736f72732f796969736f66743f7374796c653d666f722d7468652d6261646765266c6f676f3d6f70656e636f6c6c656374697665)](https://opencollective.com/yiisoft)[![Open Collective backers](https://camo.githubusercontent.com/a4cc8ab1db56682745a2929fe003be49e40f0ace469c4778da091eb5fbe91d01/68747470733a2f2f696d672e736869656c64732e696f2f6f70656e636f6c6c6563746976652f6261636b6572732f796969736f66743f7374796c653d666f722d7468652d6261646765266c6f676f3d6f70656e636f6c6c656374697665)](https://opencollective.com/yiisoft)

###  Health Score

74

—

ExcellentBetter than 100% of packages

Maintenance82

Actively maintained with recent releases

Popularity69

Solid adoption and visibility

Community61

Healthy contributor diversity

Maturity79

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~54 days

Recently: every ~82 days

Total

83

Last Release

129d ago

Major Versions

2.0.12.2 → 3.0.0-alpha12018-06-10

2.0.53 → 22.0.x-dev2025-11-04

PHP version history (5 changes)2.0.0-alphaPHP &gt;=5.4.0

3.0.0-alpha1PHP &gt;=7.1.0

2.0.50PHP &gt;=7.3.0

2.2.x-devPHP &gt;=8.1

2.0.54PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/261a6249c6f605f3956a2fae40fbb813f6b2e1e6f2bf806180c851a965426e54?d=identicon)[cebe](/maintainers/cebe)

![](https://www.gravatar.com/avatar/fc29e4e7068a00fe9b9db37b8aadda1db6020adcacef810461e47b99c2b150e6?d=identicon)[samdark](/maintainers/samdark)

![](https://www.gravatar.com/avatar/23416c58e0dce33a8369451a4ca0e28666373594027debc10184b37ade6a926b?d=identicon)[qiangxue](/maintainers/qiangxue)

![](https://www.gravatar.com/avatar/ccb75e3312d6bd454ea445ea308139fd185a4ca906ca5df21cc66e6a35de25a3?d=identicon)[SilverFire](/maintainers/SilverFire)

---

Top Contributors

[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (3602 commits)")[![qiangxue](https://avatars.githubusercontent.com/u/993322?v=4)](https://github.com/qiangxue "qiangxue (3521 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (2503 commits)")[![SilverFire](https://avatars.githubusercontent.com/u/4499203?v=4)](https://github.com/SilverFire "SilverFire (991 commits)")[![klimov-paul](https://avatars.githubusercontent.com/u/1482054?v=4)](https://github.com/klimov-paul "klimov-paul (881 commits)")[![softark](https://avatars.githubusercontent.com/u/342857?v=4)](https://github.com/softark "softark (588 commits)")[![creocoder](https://avatars.githubusercontent.com/u/896494?v=4)](https://github.com/creocoder "creocoder (282 commits)")[![Ragazzo](https://avatars.githubusercontent.com/u/1748844?v=4)](https://github.com/Ragazzo "Ragazzo (224 commits)")[![cuileon](https://avatars.githubusercontent.com/u/313312?v=4)](https://github.com/cuileon "cuileon (219 commits)")[![Arhell](https://avatars.githubusercontent.com/u/26163841?v=4)](https://github.com/Arhell "Arhell (147 commits)")[![pana1990](https://avatars.githubusercontent.com/u/6630197?v=4)](https://github.com/pana1990 "pana1990 (147 commits)")[![terabytesoftw](https://avatars.githubusercontent.com/u/42547589?v=4)](https://github.com/terabytesoftw "terabytesoftw (145 commits)")[![resurtm](https://avatars.githubusercontent.com/u/100198?v=4)](https://github.com/resurtm "resurtm (138 commits)")[![mspirkov](https://avatars.githubusercontent.com/u/63721828?v=4)](https://github.com/mspirkov "mspirkov (134 commits)")[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (130 commits)")[![githubjeka](https://avatars.githubusercontent.com/u/874234?v=4)](https://github.com/githubjeka "githubjeka (115 commits)")[![lucianobaraglia](https://avatars.githubusercontent.com/u/374554?v=4)](https://github.com/lucianobaraglia "lucianobaraglia (114 commits)")[![qiansen1386](https://avatars.githubusercontent.com/u/1759658?v=4)](https://github.com/qiansen1386 "qiansen1386 (103 commits)")[![LarryUllman](https://avatars.githubusercontent.com/u/1674823?v=4)](https://github.com/LarryUllman "LarryUllman (102 commits)")[![rob006](https://avatars.githubusercontent.com/u/5972388?v=4)](https://github.com/rob006 "rob006 (99 commits)")

---

Tags

frameworkhacktoberfestphpphp-frameworkyiiyii2frameworkyii2

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yiisoft-yii2-dev/health.svg)

```
[![Health](https://phpackages.com/badges/yiisoft-yii2-dev/health.svg)](https://phpackages.com/packages/yiisoft-yii2-dev)
```

###  Alternatives

[yiisoft/yii2

Yii PHP Framework Version 2

23529.4M9.4k](/packages/yiisoft-yii2)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[yidas/yii2-bower-asset

Bower Assets for Yii 2 app provided via Composer repository

331.2M30](/packages/yidas-yii2-bower-asset)[sproutcms/cms

Enterprise content management and framework

241.6k4](/packages/sproutcms-cms)[tecnocen/yii2-formgenerator

Yii 2 Library to configure form generator

145.7k](/packages/tecnocen-yii2-formgenerator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
