# yiisoft/yii2

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/yiisoft-yii2).**

14,298 stars · 6,789 forks · PHP · BSD-3-Clause

## Links

- GitHub: https://github.com/yiisoft/yii2
- Homepage: http://www.yiiframework.com
- awesome-repositories: https://awesome-repositories.com/repository/yiisoft-yii2.md

## Description

Yii2 is a professional PHP web framework designed for developing high-performance, scalable enterprise web applications. It utilizes a Model-View-Controller architecture to separate data logic, user interfaces, and request handling, ensuring maintainability for large-scale projects.

The framework includes a built-in PHP code generator that automates the creation of boilerplate controllers and models by scanning database schemas. It provides an Active Record object-relational mapping system where classes represent tables and instances represent rows to manage data persistence.

Additional capabilities include a comprehensive internationalization framework for extracting translatable strings and managing locale-specific messages. The system also supports component-based architecture via a service locator and uses front-controller routing to centralize request processing.

## Tags

### Programming Languages & Runtimes

- [PHP Application Frameworks](https://awesome-repositories.com/f/programming-languages-runtimes/language-ecosystems-tooling/php-application-frameworks.md) — Serves as a professional PHP web framework for developing high-performance, scalable enterprise applications.

### Web Development

- [Web Applications](https://awesome-repositories.com/f/web-development/web-applications.md) — Provides a professional, high-performance full-stack platform for building and organizing scalable enterprise web applications. ([source](https://github.com/yiisoft/yii2/blob/master/composer.json))
- [User Interface Localization](https://awesome-repositories.com/f/web-development/internationalization-localization/core-localization-frameworks/user-interface-localization.md) — Provides a comprehensive internationalization framework for extracting translatable strings and managing locale-specific messages. ([source](https://github.com/yiisoft/yii2/blob/master/docs/internals/translation-workflow.md))
- [Front-Controller Patterns](https://awesome-repositories.com/f/web-development/request-routing/front-controller-patterns.md) — Employs a front-controller pattern to centralize all incoming HTTP requests for processing and security filtering.

### Business & Productivity Software

- [Enterprise Application Frameworks](https://awesome-repositories.com/f/business-productivity-software/enterprise-application-frameworks.md) — Provides a professional foundational platform tailored for building high-scale, maintainable enterprise-grade web applications.

### Data & Databases

- [Database-Driven Frameworks](https://awesome-repositories.com/f/data-databases/database-driven-frameworks.md) — Prioritizes database schema and persistence through its Active Record ORM and schema-driven code generation.
- [Active-Record ORMs](https://awesome-repositories.com/f/data-databases/object-relational-mappers/active-record-orms.md) — Implements an Active Record ORM where classes represent database tables and instances represent individual rows.

### Software Engineering & Architecture

- [Enterprise Application Platforms](https://awesome-repositories.com/f/software-engineering-architecture/enterprise-application-platforms.md) — Offers a comprehensive framework with built-in support for security and performance for business-grade software.
- [MVC Frameworks](https://awesome-repositories.com/f/software-engineering-architecture/mvc-frameworks.md) — Implements the MVC architectural pattern to organize server-side logic and separate data from the user interface.
- [Model-View-Controller Patterns](https://awesome-repositories.com/f/software-engineering-architecture/software-architecture/architectural-patterns/layering-presentation/model-view-controller-patterns.md) — Uses the Model-View-Controller architectural pattern to separate data logic, user interfaces, and request handling.
- [Code Generators](https://awesome-repositories.com/f/software-engineering-architecture/code-generators.md) — Includes a built-in code generator called Gii to automate the creation of boilerplate controllers and models.
- [Component-Based Architectures](https://awesome-repositories.com/f/software-engineering-architecture/component-based-architectures.md) — Uses a component-based architecture with a service locator to manage reusable objects across the application lifecycle.
- [Application Text Translation](https://awesome-repositories.com/f/software-engineering-architecture/infrastructure-configuration-languages/multi-language-support/multilingual-site-support/application-text-translation.md) — Implements systems for translating application UI text and labels into multiple languages based on locale.
- [Internationalization Frameworks](https://awesome-repositories.com/f/software-engineering-architecture/internationalization-frameworks.md) — Includes a comprehensive framework for extracting translatable strings and managing locale-specific messages.
- [Service Locators](https://awesome-repositories.com/f/software-engineering-architecture/service-locators.md) — Provides a service locator to manage the instantiation and lifecycle of reusable application components.

### Development Tools & Productivity

- [Database Schema Scaffolding](https://awesome-repositories.com/f/development-tools-productivity/code-generators/boilerplate-generators/database-schema-scaffolding.md) — Includes a built-in code generator that automates the creation of boilerplate controllers and models by scanning database schemas.
- [Schema-Driven Code Generators](https://awesome-repositories.com/f/development-tools-productivity/project-scaffolding-config-code-generation/code-generation/schema-driven-code-generators.md) — Automatically generates PHP source code for controllers and models by scanning database schemas.

### Part of an Awesome List

- [API Frameworks](https://awesome-repositories.com/f/awesome-lists/devtools/api-frameworks.md) — A set of tools for implementing RESTful APIs in PHP.
- [Web Frameworks](https://awesome-repositories.com/f/awesome-lists/devtools/web-frameworks.md) — High-performance, secure, and efficient web framework.
