PHPackages                             mawi12345/ajax-autocomplete-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. [API Development](/categories/api)
4. /
5. mawi12345/ajax-autocomplete-bundle

ActiveSymfony-bundle[API Development](/categories/api)

mawi12345/ajax-autocomplete-bundle
==================================

Symfony AjaxAutocompleteBundle

22.8k2[2 issues](https://github.com/mawi12345/ajax-autocomplete-bundle/issues)[1 PRs](https://github.com/mawi12345/ajax-autocomplete-bundle/pulls)PHP

Since May 17Pushed 12y ago1 watchersCompare

[ Source](https://github.com/mawi12345/ajax-autocomplete-bundle)[ Packagist](https://packagist.org/packages/mawi12345/ajax-autocomplete-bundle)[ RSS](/packages/mawi12345-ajax-autocomplete-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

AjaxAutocompleteBundle - easy jquery ui autocomplete for symfony2
=================================================================

[](#ajaxautocompletebundle---easy-jquery-ui-autocomplete-for-symfony2)

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

[](#installation)

### Add the following line to your `composer.json` file:

[](#add-the-following-line-to-your--composerjson-file)

```
"require": {
	...
	"mawi12345/ajax-autocomplete-bundle": "dev-master",
}

```

You also have to install [FOSJsRoutingBundle](https://github.com/FriendsOfSymfony/FOSJsRoutingBundle)(its required via composer.json of ours, but you need to add it to the AppKernel.php!)

### Add AjaxAutocompleteBundle to your application kernel

[](#add-ajaxautocompletebundle-to-your-application-kernel)

```
    // app/AppKernel.php
    public function registerBundles()
    {
        return array(
            // ...
            new Mawi\AjaxAutocompleteBundle\MawiAjaxAutocompleteBundle(),
            // ...
        );
    }

```

### Import routes (app/config/routing.yml)

[](#import-routes-appconfigroutingyml)

```
mawi_ajaxautocomplete:
    resource: "@MawiAjaxAutocompleteBundle/Resources/config/routing.xml"

```

### Update your configuration (app/config/config.yml)

[](#update-your-configuration-appconfigconfigyml)

#### Add form theming to twig

[](#add-form-theming-to-twig)

```
twig:
    ...
    form:
        resources: [ 'MawiAjaxAutocompleteBundle::fields.html.twig' ]

```

#### Add autocomplete config

[](#add-autocomplete-config)

```
mawi_ajax_autocomplete:
    autocomplete:
        person:
            class: AMTestBundle:Person
            label: searchLabel
            labelClass: searchLabelClass
            search: contains
            query: "SELECT p FROM AMTestBundle:Person p WHERE p.lastName LIKE :term OR CONCAT(p.lastName, CONCAT(' ', p.firstName)) LIKE :term ORDER BY p.lastName"
            max: 20
        company:
            class: AMTestBundle:Company
            label: name
            search: contains
            query: "SELECT c FROM AMTestBundle:Company c WHERE c.name LIKE :term"
            max: 20

```

### Load needed Javascript in your views

[](#load-needed-javascript-in-your-views)

```

    {% javascripts
        '@MawiAjaxAutocompleteBundle/Resources/public/js/autocomplete.js'
        output='js/mawi-autocomplete.js'
        filter='?uglifyjs'
    %}

    {% endjavascripts %}

```

### Load CSS in your views

[](#load-css-in-your-views)

```
    {% stylesheets '@MawiAjaxAutocompleteBundle/Resources/public/css/*' filter='cssrewrite' %}

    {% endstylesheets %}

```

### Use the FormType

[](#use-the-formtype)

```
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
			->add('title')
            ->add('firstName')
            ->add('lastName')
            ->add('company', 'mawi_ajax_autocomplete', array('entity_alias'=>'company'))

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/339631?v=4)[Martin Wind](/maintainers/mawi12345)[@mawi12345](https://github.com/mawi12345)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mawi12345-ajax-autocomplete-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mawi12345-ajax-autocomplete-bundle/health.svg)](https://phpackages.com/packages/mawi12345-ajax-autocomplete-bundle)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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