PHPackages                             muhiddingithub/yii2-autocomplete - 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. [Search &amp; Filtering](/categories/search)
4. /
5. muhiddingithub/yii2-autocomplete

ActiveYii2-extension[Search &amp; Filtering](/categories/search)

muhiddingithub/yii2-autocomplete
================================

yii2-autocomplete jquery ui

1.0(8y ago)3133MITJavaScript

Since Oct 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/muhiddingithub/yii2-autocomplete)[ Packagist](https://packagist.org/packages/muhiddingithub/yii2-autocomplete)[ RSS](/packages/muhiddingithub-yii2-autocomplete/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

yii2-autocomplete
=================

[](#yii2-autocomplete)

yii2-autocomplete jquery ui Installation
----------------------------------------

[](#yii2-autocomplete-jquery-uiinstallation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require muhiddingithub/yii2-autocomplete "dev-master"

```

or add

```
"muhiddingithub/yii2-autocomplete": "dev-master"

```

to the require section of your `composer.json` file.

[Jquery source](https://jqueryui.com/autocomplete/)

Usage
-----

[](#usage)

```
    echo  \muhiddin\autocomplete\AutoComplete::widget([
                                'id' => 'search',
                                'form'=>$form, // ActiveForm widget object
                                'model'=>$model, // model
                                'attribute'=>'model_attribute', // attribute of model
                                'value' => '',
                                'name' => 'name',
                                'options' => [
                                    'class' => 'form-control form-group-margin',
                                    'dir' => "ltr",
                                    'placeholder' => "search",
                                ],
                                'pluginOptions' => [
                                    'minChars' => 3,
                                    'serviceUrl' => \yii\helpers\Url::toRoute(['custom-controlller/customer-action']),
                                    'width' => '40%',
                                    'onSelect' => 'function(suggestion){
                                        // call onselect found element function

                                    }'
                                ]
                            ])
```

in custom-controlller/customer-action
-------------------------------------

[](#in-custom-controlllercustomer-action)

```
$query = Yii::$app->request->get('query');
        if (!empty($query)) {
            $find = MyModel::find()->andFilterWhere(['like','column_name',$query]);
            $allModels = $find->column();
            echo json_encode([
                'suggestions' => $allModels
            ]);
        } else {
            echo json_encode(['status' => 'failure']);
        }

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3170d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13f63f5384f8047aa00894a3120cbe0dba56a789e9bc5f055f8178ac6eb400cc?d=identicon)[mjumaniyazoff](/maintainers/mjumaniyazoff)

---

Top Contributors

[![muhiddingithub](https://avatars.githubusercontent.com/u/11289028?v=4)](https://github.com/muhiddingithub "muhiddingithub (10 commits)")

---

Tags

autocompletejquery-autcompleteyii2yii2-autocompleteyii2-extensionsearchautocompleteyii2extensionwidgetjQuery UImuhiddin

### Embed Badge

![Health badge](/badges/muhiddingithub-yii2-autocomplete/health.svg)

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

###  Alternatives

[thrieu/yii2-grid-view-state

Save filters from GridView to session, keep the filter state between pages.

1313.5k1](/packages/thrieu-yii2-grid-view-state)[sammaye/yii2-solr

Solr plugin for the Yii2 framework built ontop of Solarium

1063.3k](/packages/sammaye-yii2-solr)[vintage/yii2-search

Search in Active Record models for Yii2

294.6k](/packages/vintage-yii2-search)

PHPackages © 2026

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