Installation guide
このコンテンツはまだ日本語訳がありません。
Requirements
Section titled “Requirements”- PHP 8.3 or later.
- Yii2 matching
~2.0.55 || ^22.0@dev. - PHP PDO and the PDO driver for the selected database.
- Composer for dependency management.
Install the extension
Section titled “Install the extension”Select the 0.2 API described by these guides:
composer require yii2-extensions/nested-sets-behavior:^0.2Yii 2.0
Section titled “Yii 2.0”Yii 2.0 uses Bower asset packages. If the application does not already configure a source for them, add Asset Packagist before installing:
composer config repositories.asset-packagist composer https://asset-packagist.orgcomposer require yii2-extensions/nested-sets-behavior:^0.2 'yiisoft/yii2:~2.0.55'Yii 22
Section titled “Yii 22”Use the declared Yii 22 constraint:
composer require yii2-extensions/nested-sets-behavior:^0.2 'yiisoft/yii2:^22.0@dev'After resolving dependencies, verify the runtime with composer check-platform-reqs. Before writing trees, apply the
lock registry migration and configure the model as described below.