yacon/yii2-ide-helper

Yii2 IDE Helper, generates correct PHPDocs for all components, to improve auto-completion.

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

pkg:composer/yacon/yii2-ide-helper

1.0 2023-10-31 04:49 UTC

This package is auto-updated.

Last update: 2025-09-29 02:59:40 UTC


README

Install

Require this package with composer using the following command:

composer require yacon/yii2-ide-helper --dev

Usage

After updating composer, add the component to the components array and bootstrap array in config file of console application:

'bootstrap' => ['log', 'ideHelper'],
'components' => [
    'ideHelper' => [
        'class' => 'yacon\IdeHelper\IdeHelper',
    ],
],

Now you can generate ide helper file by command:

./yii ide-helper/generate

Options

'ideHelper' => [
    'class' => 'yacon\IdeHelper\IdeHelper',
    'rootDir' => dirname(dirname(__DIR__)),
],

Default config files:

protected $defaultConfigFiles = [
    'common/config/main.php',
    'common/config/main-local.php',
    'frontend/config/main.php',
    'frontend/config/main-local.php',
    'backend/config/main.php',
    'backend/config/main-local.php',
];