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

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

dms/dms-filter-bundle
=====================

DMS Filter Bundle, makes Annotation based entity filtering available in Symfony

v6.0.0(1y ago)78351.6k—7.7%25[1 PRs](https://github.com/rdohms/dms-filter-bundle/pulls)1MITPHPPHP ^8.2CI passing

Since Jan 27Pushed 5mo ago3 watchersCompare

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

READMEChangelog (10)Dependencies (7)Versions (24)Used By (1)

DMS Filter Bundle
=================

[](#dms-filter-bundle)

This bundle makes DMS/Filter available for use in your application for input filtering.

Current Status: [![Build Status](https://camo.githubusercontent.com/bb2ea9e87a1b886f51b419e5fdf6f826315aab090b03867fea351b396b19cf3f/68747470733a2f2f7472617669732d63692e6f72672f72646f686d732f646d732d66696c7465722d62756e646c652e706e673f6272616e63683d322e646576)](https://travis-ci.org/rdohms/dms-filter-bundle) [![Dependency Status](https://camo.githubusercontent.com/fe6905d225e06807132f4ab1042fe2ea6d73021fb048d40759d8c81f3bb352f4/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f646d733a646d732d66696c7465722d62756e646c652f312e312e312f62616467652e706e67)](https://www.versioneye.com/php/dms:dms-filter-bundle/1.1.1)

Install
-------

[](#install)

### 1. Import libraries

[](#1-import-libraries)

Option A) Use Composer.

```
composer require dms/dms-filter-bundle

```

### 2. Enable Bundle

[](#2-enable-bundle)

Add this to your `config/bundles.php`

```
DMS\Bundle\FilterBundle\DMSFilterBundle::class => ['all' => true]

```

### 3. Configure

[](#3-configure)

This bundle can now automatically filter your forms if it finds a annotated entity attached.

This is the default behaviour, if you want to disable it add this to your `config.yml`

```
dms_filter:
    auto_filter_forms: false

```

Usage
-----

[](#usage)

### Adding Annotations

[](#adding-annotations)

To add attributes to your entity, import the namespace and add them like this:

```
