PHPackages                             heimrichhannot/contao-entity-filter-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. heimrichhannot/contao-entity-filter-bundle

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

heimrichhannot/contao-entity-filter-bundle
==========================================

This module offers an input type for selecting one or more entities by comfortably 'clicking together' sql-like conditions.

2.0.1(8mo ago)28.3k↑122.2%2LGPL-3.0-or-laterPHPPHP ^8.1

Since Jan 26Pushed 8mo ago5 watchersCompare

[ Source](https://github.com/heimrichhannot/contao-entity-filter-bundle)[ Packagist](https://packagist.org/packages/heimrichhannot/contao-entity-filter-bundle)[ RSS](/packages/heimrichhannot-contao-entity-filter-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (14)Versions (22)Used By (2)

Contao Entity Filter Bundle
===========================

[](#contao-entity-filter-bundle)

This module offers an input type for selecting one or more entities by comfortably "clicking together" sql-like conditions.

[![alt text](./docs/screenshot.png "Demo in the backend")](./docs/screenshot.png)

Features
--------

[](#features)

- "click together" conditions for filtering (aka selecting) arbitrary contao entities
- load existing filter conditions from other records
- display a result list of your filtering right in the contao record's edit view

### Technical instructions

[](#technical-instructions)

This module offers 3 comfortable different functions for adding the widgets mentioned before right to your dca.

*Note: Of course, you can also copy these 3 functions and customize them if they don't suit your needs*

#### Add the entity filter widget to your dca:

[](#add-the-entity-filter-widget-to-your-dca)

*Hint: If you like to set the table to be filtered dynamically, you can do that in an `onload_callback`. But you still have to call the following function in your dca and not the callback because else `exclude` wouldn't be set correctly.*

```
\Contao\System::getContainer()->get('huh.entity_filter.manager')->addFilterToDca(
    // the name of the field
    'memberConditions',
    // your dca
    'tl_md_recipient_list',
    // the table to be filtered
    'tl_member'
);

```

#### Add a field for copying entity filters from other records:

[](#add-a-field-for-copying-entity-filters-from-other-records)

```
\Contao\System::getContainer()->get('huh.entity_filter.manager')->addFilterCopierToDca(
    // the name of the field
    'filterCopier',
    // your dca
    'tl_recipient_list',
    // the dca where the field values are situated you want to copy (usually the same as your dca)
    'tl_recipient_list',
    // the entity_filter field
    'memberConditions',
    // a custom options_callback -> if left out, ['huh.field_value_copier.util.field_value_copier_util', 'getOptions'] is used
    ['huh.field_value_copier.util.field_value_copier_util', 'getOptions'],
    // config parameters for field value copier widget
    [
        'labelPattern' => '%title% (ID %id%)'
    ]
);

```

#### Add a live-reloaded table for showing the results of your conditions:

[](#add-a-live-reloaded-table-for-showing-the-results-of-your-conditions)

```
\Contao\System::getContainer()->get('huh.entity_filter.manager')->addListToDca(
    // the name of the field
    'memberList',
    // your dca
    'tl_recipient_list',
    // the entity_filter field
    'memberConditions',
    // the table being filtered
    'tl_member',
    // the header fields of the table
    array(
        'title',
        'firstname',
        'lastname',
        'email',
    )
);

```

Events
------

[](#events)

NameArguments`ModifyEntityFilterQueryEvent``string $table`, `string $field`, `$activeRecord`, `string $query`, `string $where`, `array $values`, `array $listDca`

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance59

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 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 ~147 days

Recently: every ~272 days

Total

20

Last Release

264d ago

Major Versions

1.11.0-beta1 → 2.0.02025-03-31

PHP version history (6 changes)1.0.0PHP &gt;=7.1.0

1.6.1PHP ^7.1

1.8.0PHP ^7.1||^8.0

1.10.0PHP ^7.4 || ^8.0

1.11.0-beta1PHP ^8.2

2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/28ad3224d8727b622ebd229840eea6b9dbcb83eb0bd609e6ce65b614830ff538?d=identicon)[digitales@heimrich-hannot.de](/maintainers/digitales@heimrich-hannot.de)

---

Top Contributors

[![koertho](https://avatars.githubusercontent.com/u/12064642?v=4)](https://github.com/koertho "koertho (8 commits)")

###  Code Quality

Static AnalysisPHPStan, Rector

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/heimrichhannot-contao-entity-filter-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/heimrichhannot-contao-entity-filter-bundle/health.svg)](https://phpackages.com/packages/heimrichhannot-contao-entity-filter-bundle)
```

###  Alternatives

[sulu/sulu

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

1.3k1.4M196](/packages/sulu-sulu)[codefog/contao-haste

haste extension for Contao Open Source CMS

41668.4k162](/packages/codefog-contao-haste)[metamodels/core

MetaModels core

9956.1k68](/packages/metamodels-core)[contao-community-alliance/dc-general

Universal data container for Contao

1579.5k90](/packages/contao-community-alliance-dc-general)[shopware/storefront

Storefront for Shopware

674.4M209](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M517](/packages/shopware-core)

PHPackages © 2026

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