Documentation
این محتوا هنوز به زبان شما در دسترس نیست.
Everything you can read on this site, organized by what you are building. Start with the Yii 22.0 guide, add the guide for each extension you install, and give your coding agent the matching Markdown pages and skill. To compare packages before choosing one, use the package directory.
Start with your task
Section titled “Start with your task”| Task | Start here |
|---|---|
| Create a Yii 22.0 application | Installing Yii |
| Understand how a Yii application is organized | Application structure |
| Upgrade an existing application | Upgrading from Yii 2.0 |
| Look up a class, method or property | API reference |
| Add a widget, integration or tool | Extension guides below, or compare options in the package directory |
| Deploy and operate an application | Cookbook |
| Develop in containers | Docker environments |
| Use a coding agent | Build Yii applications with AI agents |
Yii 22.0 framework
Section titled “Yii 22.0 framework”The guide and API reference cover the Yii 22.0 development line. Translations of the guide are available through the language selector. What’s new in Yii 22.0 | Guide | API reference. For Yii3, follow the Yii3 resources.
Extension guides
Section titled “Extension guides”Each extension below has installation steps, configuration, examples, API reference and, where available, an agent skill, all on this site. Versions and requirements are recorded in the matching package entry.
Forms and widgets
Section titled “Forms and widgets”Widgets, form models and UI components for forms, layout and file uploads.
-
Bootstrap 6: Bootstrap 6 widgets, forms, and asset bundles for Yii2.
Install | Configure | Examples, live demos | Migrate | API reference | Agent skill | Package entry
-
DynamicForm: Clone nested form rows in Yii2 ActiveForm.
Install | Configure | Examples | Agent notes | API reference | Agent skill | Package entry
-
FilePond: FilePond file uploads for Yii2 forms.
Install | Configure | Examples, live demos | Receive and store uploads | API reference | Agent skill | Package entry
-
Select2: Searchable Select2 widgets for Yii2 forms.
Install | Configure | Examples | Remote data | API reference | Agent skill | Package entry
-
Selectize: Selectize selects and text inputs for Yii models and forms.
Install | Configure | Examples | Events, accessibility and lifecycle | API reference | Agent skill | Package entry
-
TimePicker: Bootstrap time picker for Yii2 forms.
Install | Configure | Examples | Time value contract | API reference | Agent skill | Package entry
-
Form Model: Form metadata and validation errors for model-driven PHP forms.
Install | Configure | Examples | Agent notes | API reference | Agent skill | Package entry
Routing, languages and frontend
Section titled “Routing, languages and frontend”Language-prefixed URLs, asset tooling and client-driven pages served by PHP controllers.
-
Inertia: Connect Yii requests, responses, views, sessions, and redirects to the Inertia protocol.
Install | Configure | Examples | Migrate | API reference | Agent skill | Package entry
-
Locale URLs: Language detection, persistence, and locale-aware URLs for Yii2 applications.
Install | Configure | Examples | Agent notes | API reference | Agent skill | Package entry
-
Foxy: Foxy is a Composer plugin that aggregates frontend dependencies declared by Composer packages into one package.json and delegates installation to Bun, Deno...
Getting started | Configuration | Usage | Events | API reference | Agent skill | Package entry
Data modelling
Section titled “Data modelling”Storage patterns and behaviors for Active Record and database models.
-
CSV Export: CSV data export for Yii2 data providers and queries.
Install | Configure | Examples | Agent notes | API reference | Agent skill | Package entry
-
Nested sets behavior: A powerful behavior for managing hierarchical data structures using the nested sets pattern in Yii ActiveRecord models.
Install | Configure | Examples | Agent notes | API reference | Agent skill | Package entry
-
Soft Delete: Soft deletion and restoration for Yii2 ActiveRecord.
Install | Configure | Examples | Agent notes | API reference | Agent skill | Package entry
-
Model: Typed model mapping for modern PHP applications.
Install | Configure | Examples | Agent notes | API reference | Agent skill | Package entry
Application servers and workers
Section titled “Application servers and workers”Run an application in a long-running PHP worker or behind a PSR-7 bridge.
-
FrankenPHP: Supercharge your Yii2 applications with FrankenPHP blazing-fast HTTP server.
Install | Configure | Examples | Migrate | API reference | Agent skill | Package entry
-
PSR bridge: Transform your Yii2 applications into high-performance, PSR-compliant powerhouses.
Install | Configure | Examples | Migrate | API reference | Agent skill | Package entry
-
RoadRunner: Supercharge your Yii2 applications with RoadRunner blazing-fast HTTP server.
Install | Configure | Agent notes | Testing | API reference | Agent skill | Package entry
Quality and debugging
Section titled “Quality and debugging”Inspect requests at runtime, check code with static analysis and share test helpers.
-
Debug: Debugger and toolbar for Yii2 applications.
Install | Configure | Examples | Screenshots | API reference | Agent skill | Package entry
-
PHPStan: Enhanced static analysis for Yii2 applications with PHPStan.
Install | Configure | Examples | Migrate | API reference | Agent skill | Package entry
-
Coding standard: Centralized ECS and Rector configuration for PHP projects.
-
Debug Core: A framework-agnostic PHP core providing snapshots, storage, and the complete frontend for debugger adapters.
-
Diff: Git-compatible line diff for PHP.
Install | Examples | Algorithms guide | Agent notes | API reference | Agent skill | Package entry
-
Yii3 Debug: Debugger and toolbar for Yii3 applications.
Configure | Examples | Getting started | Screenshots | API reference | Agent skill | Package entry
Build your own extension
Section titled “Build your own extension”Starters and tooling for writing and testing a new package.
-
Extension template: A Yii2 extension template to create your own Yii2 extensions.
Install | Configure | Examples | Testing | API reference | Package entry
Views and HTML
Section titled “Views and HTML”HTML generation and templating helpers for views.
-
HTML Attribute: A focused library for building and rendering structured HTML attributes.
Agent notes | Testing | API reference | Agent skill | Package entry
-
HTML Contracts: Contracts (interfaces) for the UI Awesome HTML ecosystem for PHP.
Install | Examples | Agent notes | Testing | API reference | Agent skill | Package entry
-
HTML Core: A type-safe PHP library for standards-compliant HTML tag rendering.
Agent notes | Testing | API reference | Agent skill | Package entry
-
HTML: A fluent, immutable PHP library for generating HTML elements with typed attribute helpers.
Agent notes | Testing | API reference | Agent skill | Package entry
-
HTML Helper: Framework-independent helpers for HTML output in PHP.
Install | Examples | Agent notes | Testing | API reference | Agent skill | Package entry
-
HTML Mixin: A type-safe PHP mixin library for HTML tag rendering components.
Agent notes | Testing | API reference | Agent skill | Package entry
-
HTML SVG: A robust, fluent, and immutable PHP library for generating and manipulating SVG elements.
Agent notes | Testing | API reference | Agent skill | Package entry
Authentication and security
Section titled “Authentication and security”Login, access control, tokens and request hardening.
-
LDAP: LDAP directories for Yii2 through native LdapRecord models.
Install | Configure | Examples | Agent notes | API reference | Agent skill | Package entry
Console and code generation
Section titled “Console and code generation”Commands, generators and developer tooling for the command line.
-
Scaffold: Declarative multi-layer file scaffolding for PHP projects.
Install | Configure | Creating providers | File modes | Console commands | API reference | Package entry
Development tools
Section titled “Development tools”Tools that set up your environment rather than your application code. They have guides and skills, but no Composer package or PHP API.
-
Docker: Debian Trixie images with Apache 2.4, PHP-FPM and HTTP/2 for Yii2 applications.
Install | Configure | Examples | Agent notes | Testing | Agent skill
Cookbook
Section titled “Cookbook”Practical recipes for deploying and operating Yii applications:
Read with a coding agent
Section titled “Read with a coding agent”Install the skill for your framework or package, then give the agent the
Markdown version of the page it needs (append index.md to any page URL). The
AI guide explains skill selection and checking.
llms.txt lists every English page; the
skill index records provenance and hashes.
Improve the documentation
Section titled “Improve the documentation”The site maintenance guide identifies the sources of guides, API references, and generated assets. To propose a package listing, follow the separate catalog contribution workflow.