PHPackages                             mapado/typeaheadjs-bundle - 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. [Templating &amp; Views](/categories/templating)
4. /
5. mapado/typeaheadjs-bundle

AbandonedArchivedLibrary[Templating &amp; Views](/categories/templating)

mapado/typeaheadjs-bundle
=========================

Typeahead-js integration in Symfony form type

v1.0.1(11y ago)03.8kGPL-2.0PHP

Since Feb 16Pushed 9y ago11 watchersCompare

[ Source](https://github.com/mapado/typeaheadjs-bundle)[ Packagist](https://packagist.org/packages/mapado/typeaheadjs-bundle)[ RSS](/packages/mapado-typeaheadjs-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

typeahead-js bundle
===================

[](#typeahead-js-bundle)

This bundle provide [typeahead.js](https://github.com/twitter/typeahead.js) form type integration into a Symfony project.

Instalation
-----------

[](#instalation)

Install with composer:

```
$ composer require mapado/typeaheadjs-bundle
```

Update your `app/AppKernel.php` file:

```
$bundles = array(
    // ...
    new Mapado\TypeaheadJsBundle\MapadoTypeaheadJsBundle(),
);
```

Update your `app/config/config.yml` file to provide twig form template:

```
twig:
    form:
        resources:
            - 'MapadoTypeaheadJsBundle:Form:fields.html.twig'
```

Use your assets manager to include this file: `Resources/public/js/typeahead-form.js`

Usage
-----

[](#usage)

Usage is very simple:

```
$builder->add('user', 'typeahead', [ 'url' => $searchUrl ]);
```

You need to pass the `$searchUrl` as a parameter.

### Ajax response

[](#ajax-response)

The response must be a JSON array in the following format:

```
[
    { "id": 1, "value": "Foo" },
    { "id": 2, "value": "Bar" }
]
```

Note
----

[](#note)

This bundle is greatly inspired by [Lifo101 typeahead bundle](https://github.com/lifo101/typeahead-bundle) but it does work with the typeahead-js new version of typeahead.

It does not requires bootstrap, and supports a lot less features for now.

Feel free to make a PR or open an issue if you want to add stuff.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

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

Every ~0 days

Total

2

Last Release

4109d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3277986d0e1f93c7e8a58fdaf1b52e3f5a1588e73dfa298d33aafb1ebbde5ef2?d=identicon)[jdeniau](/maintainers/jdeniau)

![](https://www.gravatar.com/avatar/90d135128b469dc38fcf186ac78d0f2cd82fc696ffcf5be8a8c486b7bd911ff6?d=identicon)[mapado](/maintainers/mapado)

---

Top Contributors

[![jdeniau](https://avatars.githubusercontent.com/u/1398469?v=4)](https://github.com/jdeniau "jdeniau (5 commits)")

### Embed Badge

![Health badge](/badges/mapado-typeaheadjs-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mapado-typeaheadjs-bundle/health.svg)](https://phpackages.com/packages/mapado-typeaheadjs-bundle)
```

###  Alternatives

[a2lix/auto-form-bundle

Automate form building

873.8M11](/packages/a2lix-auto-form-bundle)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19280.3k3](/packages/symfony-ux-cropperjs)[iq2i/storia-bundle

UI Storia bundle

144.6k](/packages/iq2i-storia-bundle)

PHPackages © 2026

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