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

AbandonedSymfony-bundle[Search &amp; Filtering](/categories/search)

padam87/search-bundle
=====================

Symfony2 SearchBundle

v2.0.1(12y ago)83.3k5[1 PRs](https://github.com/Padam87/SearchBundle/pulls)MITPHPPHP &gt;=5.3.3

Since Nov 28Pushed 10y ago2 watchersCompare

[ Source](https://github.com/Padam87/SearchBundle)[ Packagist](https://packagist.org/packages/padam87/search-bundle)[ Docs](https://github.com/Padam87/SearchBundle)[ RSS](/packages/padam87-search-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (5)Versions (7)Used By (0)

[![Build Status](https://camo.githubusercontent.com/4aa83a1cb9d8ac856332590547f9868017f9b1429636c03d21b39edc294dc18e/68747470733a2f2f7472617669732d63692e6f72672f506164616d38372f53656172636842756e646c652e706e67)](https://travis-ci.org/Padam87/SearchBundle)[![Coverage Status](https://camo.githubusercontent.com/867ead06fbb274b59b339f3bf088966cfae06e240fbd29e81471fc86fe85f94e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f506164616d38372f53656172636842756e646c652f62616467652e706e67)](https://coveralls.io/r/Padam87/SearchBundle)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/6fe7f69ad42f0551cfce532ae99df4e961a11d05a5c47eb5896f7aead0eac431/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f506164616d38372f53656172636842756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f733d39623163383863656239626434666532643530643261323833663231623761326633336236323939)](https://scrutinizer-ci.com/g/Padam87/SearchBundle/)[![SensioLabsInsight](https://camo.githubusercontent.com/3b24791915a257a35fb2d19dc6fe83a3a004ff8c8008c379ef395f7bb4727a48/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f63643338373639632d623330622d346436612d383863652d6531393036623335656565322f6d696e692e706e67)](https://insight.sensiolabs.com/projects/cd38769c-b30b-4d6a-88ce-e1906b35eee2)[![Latest Stable Version](https://camo.githubusercontent.com/ff19fc79dc74bf07f83a2559190c8f80c2e494ccb56c54326e86bc2b0abd20ae/68747470733a2f2f706f7365722e707567782e6f72672f706164616d38372f7365617263682d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/padam87/search-bundle)[![Total Downloads](https://camo.githubusercontent.com/48b995633e5b53bbc520edac89abb677c19e45ed4e1e88a8a482d8b3e3ac8034/68747470733a2f2f706f7365722e707567782e6f72672f706164616d38372f7365617263682d62756e646c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/padam87/search-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/8119aa1c527570319c157b6815d80c3cef7fac4b311851e04dea341455407d5b/68747470733a2f2f706f7365722e707567782e6f72672f706164616d38372f7365617263682d62756e646c652f762f756e737461626c652e706e67)](https://packagist.org/packages/padam87/search-bundle)[![License](https://camo.githubusercontent.com/60b9ce2be9013b97f0f3a67c821ca44ed35b3e64002599ed4d26e76e18e6ad7f/68747470733a2f2f706f7365722e707567782e6f72672f706164616d38372f7365617263682d62756e646c652f6c6963656e73652e706e67)](https://packagist.org/packages/padam87/search-bundle)

Search Bundle
=============

[](#search-bundle)

Search bundle for Symfony2. Use entities, collections for search directly. Great for handling complex search forms.

1. Examples
-----------

[](#1-examples)

### 1.1 Simple

[](#11-simple)

```
$fm = $this->get('padam87_search.filter.manager');
$filter = new Filter($data, 'YourBundle:Entity', 'alias');
$qb = $fm->createQueryBuilder($filter);
```

`$data` can be an ***array***, an ***entity***, or even a doctrine ***collection***.

You can add your own converter to handle any type of data.

### 1.2 Joins

[](#12-joins)

```
$fm = $this->get('padam87_search.filter.manager');
$filter1 = new Filter($data1, 'YourBundle:Entity1', 'alias1');
$filter2 = new Filter($data2, 'YourBundle:Entity2', 'alias2');
$qb = $fm->joinToQueryBuilder($filter2, $fm->createQueryBuilder($filter1), 'associationName');
```

`'associationName'` is the name of the relation in your entity, eg 'users'

### 1.3 Collection valued associations

[](#13-collection-valued-associations)

```
$fm = $this->get('padam87_search.filter.manager');
$filter = new Filter($data, 'YourBundle:Entity', 'alias');
$qb = $fm->createQueryBuilder($filter);
```

When `$data` is an entity, it can have \*ToMany associations. By default, the bundle assumes OR relationship between the elements of the collection. To change that, you can use the 2nd parameter of `$fm->createQueryBuilder`:

```
$fm = $this->get('padam87_search.filter.manager');
$filter = new Filter($data, 'YourBundle:Entity', 'alias');
$qb = $fm->createQueryBuilder($filter, array(
    'relationName' => 'AND'
));
```

### 1.4 Operators

[](#14-operators)

```
$data = array(
    'integerField>=' => 10
    'stringFiled' => 'A*'
);
$filter = new Filter($data, 'YourBundle:Entity', 'alias');
```

The bundle will search for operators in the field names and values, and use the appropriate Expr.

For a nicer, and entity-compatible solution you can use the 4th parameter of the Filter to set default operators:

```
$filter = new Filter($data, 'YourBundle:Entity', 'alias', array(
    'integerField' => '>='
));
```

2. Installation
---------------

[](#2-installation)

### 2.1. Composer

[](#21-composer)

```
"padam87/search-bundle": "2.0.*",

```

### 2.2. AppKernel

[](#22-appkernel)

```
$bundles = array(
	...
    new Padam87\SearchBundle\Padam87SearchBundle(),
);

```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 97.7% 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 ~24 days

Total

6

Last Release

4474d ago

Major Versions

1.0.x-dev → v2.0.02014-03-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/776488?v=4)[Adam Prager](/maintainers/Padam87)[@Padam87](https://github.com/Padam87)

---

Top Contributors

[![Padam87](https://avatars.githubusercontent.com/u/776488?v=4)](https://github.com/Padam87 "Padam87 (86 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![garak](https://avatars.githubusercontent.com/u/179866?v=4)](https://github.com/garak "garak (1 commits)")

---

Tags

searchsymfony

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/padam87-search-bundle/health.svg)

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

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M203](/packages/sulu-sulu)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

939.0k](/packages/ahmed-bhs-doctrine-doctor)

PHPackages © 2026

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