1 min readCalm pace · scan the outline anytime

Yii adapter

Yii Yii3 (yiisoft/*); Yii2 brownfield host mapping for Modular Hexagonal DDD — deep topic pages.

Yii adapter

HostYii Yii3 (yiisoft/*); Yii2 brownfield
PHP≥ 8.2 (Yii3)
Researched2026-08
ORM / persistenceCycle ORM (Yii3) / ActiveRecord (Yii2 Infra only)
Composition rootconfig/common/di/*.php
AsyncQueue / console consumers
One-shot apply/apply/yii.full.md
Short URL/yii

Yii is a host, not Core. Domain and Application stay framework-agnostic; the pages below map Core roles onto Yii APIs.

Topic pages

  1. Persistence — Cycle ORM (Yii3) / ActiveRecord (Yii2 Infra only) quarantine
  2. Composition root — config/common/di/*.php
  3. Cross-module bridges — ACL + async
  4. UI delivery — HTTP handlers/controllers under UI/
  5. Tooling — tests, SA, style
  6. Migrations — schema ownership

Design test

If the peer module is deleted and replaced by HTTP, does Application/Domain still compile?

Modular Hexagonal Domain-Driven Design
Core 1.0.0-draft