# yiisoft/yii2

Yii 2: The Fast, Secure and Professional PHP Framework

Repository: https://github.com/yiisoft/yii2
Canonical: https://ross.abutalabs.com/products/yii2
Homepage: http://www.yiiframework.com
Language: PHP
License: BSD-3-Clause
License Family: permissive
Topics: yii, php, php-framework, yii2, framework, hacktoberfest
Last push: 2026-08-20T21:35:09+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 59, longevity 100
- inputs: {"age_days": 5315, "days_push": 13, "days_rel": 116, "gap_med": 133, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 14299, forks 6764 (observed 2026-08-28T04:11:06.691887+00:00)

## What it is
Yii 2 is a high-performance, full-stack PHP framework for building modern web applications and APIs. It ships with an ORM (Active Record), MVC architecture, code generation tools, and sensible secure defaults out of the box.

## Use cases
- build a web application in php
- create a rest api with php
- rapid web development framework
- mvc framework with orm
- generate crud scaffolding for a database
- secure php framework with auth built in

## When to choose
- you want a batteries-included full-stack PHP framework with ORM, auth, and code generation
- you need fast performance and strong security defaults for a PHP web app or API
- your team already knows Yii or is upgrading from Yii 1.1

## When to avoid
- you prefer a micro-framework or minimal component set like Slim or Lumen
- you are starting a brand-new project and want the latest Yii 3 or another modern stack
- you need a non-PHP language or ecosystem

## Facets
- artifact type: framework
- maturity: stable
- function: web-framework, orm, templating, routing, auth, caching, middleware
- domain: web-development, backend, developer-tools
- platform: php, cross-platform
- tags: mvc, full-stack-framework, gii-code-generator, active-record, rest-api, web-server

## Member repositories
- yiisoft/yii2 (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:06.691887+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:12:40.017008+00:00, confidence not recorded.
  - readme: https://github.com/yiisoft/yii2 (fetched 2026-08-28T04:11:06.691887+00:00, sha 5e5a05d2fec6)
  - homepage: http://www.yiiframework.com (fetched 2026-08-29T08:06:12.222360+00:00, sha f2ef08184ecc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
