PHPackages                             iiifx-production/yii2-autocomplete-helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. iiifx-production/yii2-autocomplete-helper

ActiveExtension[Framework](/categories/framework)

iiifx-production/yii2-autocomplete-helper
=========================================

Yii2 Autocomplete Helper

v3.1.0(4y ago)4226.9k↓28.3%62MITPHPPHP ^8.0

Since Feb 4Pushed 4y ago5 watchersCompare

[ Source](https://github.com/iiifx-production/yii2-autocomplete-helper)[ Packagist](https://packagist.org/packages/iiifx-production/yii2-autocomplete-helper)[ Docs](https://github.com/iiifx-production/yii2-autocomplete-helper)[ RSS](/packages/iiifx-production-yii2-autocomplete-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (19)Used By (2)

Yii2 IDE Autocomplete Helper
============================

[](#yii2-ide-autocomplete-helper)

Autocompletion generator for custom components in Yii2.

[![SensioLabsInsight](https://camo.githubusercontent.com/6a0e7f45ed9b0b89bf0d99a7d65ce1cea7feb49883e4b46e79a053977b98bd66/68747470733a2f2f696e73696768742e73796d666f6e792e636f6d2f70726f6a656374732f33386261613165302d353465382d346366382d626433302d3363373665386134346439622f6269672e737667)](https://insight.symfony.com/projects/38baa1e0-54e8-4cf8-bd30-3c76e8a44d9b)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8d41e6d2090a4afa6195fe85057bdefe485a34002386e6a2f3fdfcd606849057/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69696966782d70726f64756374696f6e2f796969322d6175746f636f6d706c6574652d68656c7065722e737667)](https://packagist.org/packages/iiifx-production/yii2-autocomplete-helper)[![Total Downloads](https://camo.githubusercontent.com/373dcef3af6e6982fc61e2aafe5d0084b1e05ea3cdd494765b61a140f11ca981/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f69696966782d70726f64756374696f6e2f796969322d6175746f636f6d706c6574652d68656c7065722e737667)](https://packagist.org/packages/iiifx-production/yii2-autocomplete-helper)[![Code Coverage](https://camo.githubusercontent.com/8f7cbbd2af1fb71cd377edaaca733caad89db2e4fd403ff6e5bf24c319e5f8d6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f69696966782d70726f64756374696f6e2f796969322d6175746f636f6d706c6574652d68656c7065722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/iiifx-production/yii2-autocomplete-helper/?branch=master)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE.md)

\[English documentation\] \[[Документация на русском](README.RU.md)\]

By default in Yii2 not working autocompletion for custom components. IDE sees no added components and this causes inconvenience in operation.

This extension allows you to automatically generate a file with the autocomplete PHPDoc blocks with which the IDE will recognize **all of the components** in the application configuration.

Installation
------------

[](#installation)

Using Composer:

```
composer require "iiifx-production/yii2-autocomplete-helper"
```

Configuration
-------------

[](#configuration)

After installation, you need to one-time set up component to work.

For Yii2 Basic, in **@app/config/console.php**:

```
    'bootstrap' => ['log', 'autocomplete'],
    'components' => [
        'autocomplete' => [
            'class' => 'iiifx\Yii2\Autocomplete\Component',
        ],
        # ...
    ]
```

For Yii2 Advanced, in **@console/config/main.php**:

```
    'bootstrap' => ['log', 'autocomplete'],
    'components' => [
        'autocomplete' => [
            'class' => 'iiifx\Yii2\Autocomplete\Component',
        ],
        # ...
    ]
```

Using
-----

[](#using)

To generate autocompletion in the console:

```
php yii ide-components
```

Generator automatically detects the type of application, read all configuration files and generate the autocomplete file to the application root.

```
Yii2 IDE auto-completion helper
Vitaliy IIIFX Khomenko, 2019

Success: /home/iiifx/Projects/myProject/_ide_components.php
```

**Important:** For IDE did not swear on the two copies of the Yii class must be main Yii class file marked as a text document - [example](images/mark-as-plain-text.png). The main class is located on the way: **@vendor/yiisoft/yii2/Yii.php**

Advanced customization
----------------------

[](#advanced-customization)

Sometimes the structure of the application differs from the standard and the need to change the generator behavior.

The following are examples of possible configuration options.

### Changing the name of the component

[](#changing-the-name-of-the-component)

If you need to change the name of a **autocomplete** to another, it is quite simple:

```
    'bootstrap' => ['log', 'new-component-name'], #  [
        'new-component-name' => [ #  'iiifx\Yii2\Autocomplete\Component',
        ],
        # ...
    ]
```

When the generator run in the console you need to pass the correct component name:

```
php yii ide-components --component=new-component-name
```

### Changing environment

[](#changing-environment)

By default, a generator start is only possible for YII\_ENV = "dev" environment.

You can change the environment:

```
    'bootstrap' => ['log', 'autocomplete'],
    'components' => [
        'autocomplete' => [
            'class' => 'iiifx\Yii2\Autocomplete\Component',
            'environment' => 'local', #  ['log', 'autocomplete'],
    'components' => [
        'autocomplete' => [
            'class' => 'iiifx\Yii2\Autocomplete\Component',
            'controllerMap' => [
                'ide-components' => 'iiifx\Yii2\Autocomplete\Controller', #  'path\to\your\custom\Controller', #  ['log', 'autocomplete'],
    'components' => [
        'autocomplete' => [
            'class' => 'iiifx\Yii2\Autocomplete\Component',
            'result' => '@app/new-file-name.php' #  ['log', 'autocomplete'],
    'components' => [
        'autocomplete' => [
            'class' => 'iiifx\Yii2\Autocomplete\Component',
            'config' => [
                '@common/config/main.php', #  ['log', 'autocomplete'],
    'components' => [
        'autocomplete' => [
            'class' => 'iiifx\Yii2\Autocomplete\Component',
            'config' => [
                '@app/config/console.php', #  ['log', 'autocomplete'],
    'components' => [
        'autocomplete' => [
            'class' => 'iiifx\Yii2\Autocomplete\Component',
            'config' => [
                'frontend' => [
                    '@common/config/main.php', #  [
                    '@common/config/main.php', #  [
                    '@common/config/main.php', #  ['log', 'autocomplete'],
    'components' => [
        'autocomplete' => [
            'class' => 'iiifx\Yii2\Autocomplete\Component',
            'webAppClass' => '\full\namespace\to\WebApplicationClass',
            'consoleAppClass' => '\full\namespace\to\ConsoleApplicationClass',
        ],
        # ...
    ]
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 98.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~138 days

Recently: every ~29 days

Total

15

Last Release

1813d ago

Major Versions

v0.3.2 → v1.0.02016-12-29

v1.3.0 → v2.0.02019-02-03

v2.0.0 → v3.0.02021-02-03

PHP version history (5 changes)v0.3.1PHP &gt;=5.4

v1.0.0PHP &gt;=5.5

v1.3.0PHP ^5.5|^7

v2.0.0PHP ^7.0

v3.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c38df6d1bb48765cd3e07f39c58e0d384e0e3d9a9fd69068ab3149bc2fa1c5fc?d=identicon)[IIIFX](/maintainers/IIIFX)

---

Top Contributors

[![iiifx](https://avatars.githubusercontent.com/u/3157964?v=4)](https://github.com/iiifx "iiifx (52 commits)")[![evsmorodin](https://avatars.githubusercontent.com/u/7508931?v=4)](https://github.com/evsmorodin "evsmorodin (1 commits)")

---

Tags

autocompletionideiiifxphpstormyii2yii2-ide-autocompletionyii2-ide-helperyii2-identity-autocomplete-ideframeworkautocompletehelperideyii2yiiauto-completion

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/iiifx-production-yii2-autocomplete-helper/health.svg)

```
[![Health](https://phpackages.com/badges/iiifx-production-yii2-autocomplete-helper/health.svg)](https://phpackages.com/packages/iiifx-production-yii2-autocomplete-helper)
```

###  Alternatives

[dragon-code/support

Support package is a collection of helpers and tools for any project.

238.7M101](/packages/dragon-code-support)[yiisoft/var-dumper

Enhances functionality of var\_dump() and var\_export(). It is dealing with recursive references, may highlight syntax and export closures.

211.2M20](/packages/yiisoft-var-dumper)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[mis/yii2-ide-helper

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

1664.2k3](/packages/mis-yii2-ide-helper)[tecnocen/yii2-formgenerator

Yii 2 Library to configure form generator

145.7k](/packages/tecnocen-yii2-formgenerator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
