Перейти до вмісту
PHP Ecosystem
Explore

Installation guide

Цей контент ще не доступний вашою мовою.

  • 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.

Select the 0.2 API described by these guides:

Terminal window
composer require yii2-extensions/nested-sets-behavior:^0.2

Yii 2.0 uses Bower asset packages. If the application does not already configure a source for them, add Asset Packagist before installing:

Terminal window
composer config repositories.asset-packagist composer https://asset-packagist.org
composer require yii2-extensions/nested-sets-behavior:^0.2 'yiisoft/yii2:~2.0.55'

Use the declared Yii 22 constraint:

Terminal window
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.

Back to documentation