PHPackages                             andanteproject/page-filter-form-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. [Admin Panels](/categories/admin)
4. /
5. andanteproject/page-filter-form-bundle

ActiveSymfony-bundle[Admin Panels](/categories/admin)

andanteproject/page-filter-form-bundle
======================================

A Symfony Bundle to simplify the handling of page filters for lists/tables in admin panels.

v1.0.7(3mo ago)1070.3k↓27.4%2MITPHPPHP ^7.4 || ^8.0CI passing

Since Mar 13Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/andanteproject/page-filter-form-bundle)[ Packagist](https://packagist.org/packages/andanteproject/page-filter-form-bundle)[ RSS](/packages/andanteproject-page-filter-form-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (9)Versions (11)Used By (0)

[![Andante Project Logo](https://github.com/andanteproject/page-filter-form-bundle/raw/main/andanteproject-logo.png?raw=true)](https://github.com/andanteproject/page-filter-form-bundle/blob/main/andanteproject-logo.png?raw=true)

Page Filter Form Bundle
=======================

[](#page-filter-form-bundle)

#### Symfony Bundle - [AndanteProject](https://github.com/andanteproject)

[](#symfony-bundle---andanteproject)

[![Latest Version](https://camo.githubusercontent.com/2d00c2432b12bf757875ddbddea8c588d7893c25e6c1833cfef05faf16be7726/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f616e64616e746570726f6a6563742f706167652d66696c7465722d666f726d2d62756e646c652e737667)](https://github.com/andanteproject/page-filter-form-bundle/releases)[![Github actions](https://github.com/andanteproject/page-filter-form-bundle/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/andanteproject/page-filter-form-bundle/actions/workflows/ci.yml/badge.svg?branch=main)[![Framework](https://camo.githubusercontent.com/fb5aa1c0d7ab1e99ed7d61c5f085669341ccb41c982d52e659a5aa532822a668/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d342e78253743352e78253743362e78253743372e78253743382e782d696e666f726d6174696f6e616c3f5374796c653d666c6174266c6f676f3d73796d666f6e79)](https://camo.githubusercontent.com/fb5aa1c0d7ab1e99ed7d61c5f085669341ccb41c982d52e659a5aa532822a668/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d342e78253743352e78253743362e78253743372e78253743382e782d696e666f726d6174696f6e616c3f5374796c653d666c6174266c6f676f3d73796d666f6e79)[![Php7](https://camo.githubusercontent.com/c582fc136b4ed23cead60c28938899492ec83e353258d8c01c690196d4e62c8c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253230372e34253743382e782d696e666f726d6174696f6e616c3f7374796c653d666c6174266c6f676f3d706870)](https://camo.githubusercontent.com/c582fc136b4ed23cead60c28938899492ec83e353258d8c01c690196d4e62c8c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253230372e34253743382e782d696e666f726d6174696f6e616c3f7374796c653d666c6174266c6f676f3d706870)[![PhpStan](https://camo.githubusercontent.com/ecf361cdd6dfc8d69061b1cd65e7414a6e6293da2837adfd795aded2e52cc31a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d4c6576656c253230382d737963636573733f7374796c653d666c6174266c6f676f3d706870)](https://camo.githubusercontent.com/ecf361cdd6dfc8d69061b1cd65e7414a6e6293da2837adfd795aded2e52cc31a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d4c6576656c253230382d737963636573733f7374796c653d666c6174266c6f676f3d706870)

A Symfony Bundle to simplify the handling of page filters for lists/tables in admin panels. 🧪

Requirements
------------

[](#requirements)

Symfony 4.x-7.x and PHP 7.4-8.0.

Features
--------

[](#features)

- Use [Symfony Form](https://symfony.com/doc/current/forms.html);
- Keep your URL parameters clean as `?search=value&otherFilterName=anotherValue` by default;
- Form will work even if you render form elements **outside the form tag**, around the web page, exactly where you need, **avoiding nested form conflicts**.
- Super easy to implement and maintain;
- Works like magic ✨.

How to install
--------------

[](#how-to-install)

After [installation](#how-to-install), make sure you have the bundle registered in your Symfony bundles list (`config/bundles.php`):

```
return [
    /// bundles...
    Andante\PageFilterFormBundle\AndantePageFilterFormBundle::class => ['all' => true],
    /// bundles...
];
```

This should have been done automatically if you are using [Symfony Flex](https://symfony.com/components/Symfony%20Flex). Otherwise, register it yourself.

The problem
-----------

[](#the-problem)

Let's suppose you have this common admin panel controller with a page listing some `Employee` entities.

```
