PHPackages                             anmaslov/yii2-autocomplete-widget - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. anmaslov/yii2-autocomplete-widget

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

anmaslov/yii2-autocomplete-widget
=================================

Ajax AutoComplete widget for Yii2

v1.1(10y ago)34.4k[1 issues](https://github.com/anmaslov/yii2-autocomplete-widget/issues)MITPHP

Since Jun 29Pushed 7y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (2)Used By (0)

Bootstrap Autocomplete widget for YII2
======================================

[](#bootstrap-autocomplete-widget-for-yii2)

[![Yii2](https://camo.githubusercontent.com/d6b0929173e28cc627430d2519ca1853466a70f37395877eaf4820cb3e1e1909/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f77657265645f62792d5969695f4672616d65776f726b2d677265656e2e7376673f7374796c653d666c6174)](http://www.yiiframework.com/)[![Latest Version](https://camo.githubusercontent.com/8aa65da9704f0a7e262ecf27fdc4724815fab3e3c89630cf14c0fc1922cd0d7d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f616e6d61736c6f762f796969322d6175746f636f6d706c6574652d7769646765742e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://github.com/anmaslov/yii2-autocomplete-widget/tags)[![Build Status](https://camo.githubusercontent.com/2a1a0e11049759d78a404c7aceb7ac35daead7d998a37d2ecf34412ddceb7c9a/68747470733a2f2f7472617669732d63692e6f72672f616e6d61736c6f762f796969322d6175746f636f6d706c6574652d7769646765742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/anmaslov/yii2-autocomplete-widget)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](http://opensource.org/licenses/mit-license.php)

The Autocomplete extension is a Yii2 wrapper widget for for the [Autocomplete for jQuery plugin](https://github.com/devbridge/jQuery-Autocomplete). AutoComplete allows you to easily create autocomplete/autosuggest boxes for text input fields.

Has no dependencies other than jQuery. The widget is specially styled for Bootstrap 3.

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

[](#installation)

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

To install, either run

```
$ php composer.phar require anmaslov/yii2-autocomplete-widget "*"

```

or add

```
"anmaslov/yii2-autocomplete-widget": "*"

```

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

Usage
-----

[](#usage)

Get data from model

```
$data = Link::find()
            ->select('title as value')
            ->asArray()
            ->all();
```

In view

```
use anmaslov\autocomplete\AutoComplete;

echo AutoComplete::widget([
            'name' => 'link',
            'data' =>  $model,
             'clientOptions' => [
                 'minChars' => 2,
             ],
        ])
```

License
-------

[](#license)

**yii2-autocomplete-widget** is released under the [MIT License](http://opensource.org/licenses/mit-license.php).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

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

3970d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b423f06e965e21dc7c430973df757f677742aed0f722eba4547a6a3b7ab6b25?d=identicon)[anmaslov](/maintainers/anmaslov)

---

Top Contributors

[![anmaslov](https://avatars.githubusercontent.com/u/504623?v=4)](https://github.com/anmaslov "anmaslov (24 commits)")

---

Tags

autocompletejqueryyii2extensionwidgetyiiyii 2

### Embed Badge

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

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

PHPackages © 2026

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