PHPackages                             polysource/filter - 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. polysource/filter

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

polysource/filter
=================

Polysource — standalone filter primitive: form/datasource separation, session persistence, mapper/formatter/renderer pipeline, multi-mode UI (integrated, subpanel) with chips bar.

v0.9.0(2mo ago)01472MITPHP &gt;=8.1

Since May 9Compare

[ Source](https://github.com/polysource/filter)[ Packagist](https://packagist.org/packages/polysource/filter)[ Docs](https://github.com/polysource/polysource)[ RSS](/packages/polysource-filter/feed)WikiDiscussions Synced 3w ago

READMEChangelogDependencies (16)Versions (26)Used By (2)

polysource/filter
=================

[](#polysourcefilter)

> Filter primitives for Symfony admin UIs — usable standalone in any Symfony app, also the foundation of `polysource/easyadmin-filter-bridge` and `polysource/admin`.

Part of the [Polysource](https://github.com/polysource/polysource) monorepo. MIT-licensed.

What it ships
-------------

[](#what-it-ships)

- **`FilterCollection`** + **`FilterCriterion`** — immutable value objects representing the active filter state, scoped by a stable `id` (typically the resource FQCN).
- **`FilterService`** — session-backed persistence (load / save / clear per resource).
- **Enhanced form types** — date presets (this-week / last-30-days / etc.), range pickers, multi-select, between, in.
- **Twig extension `filter_tags`** — renders the active-filters chips bar.
- **Saved views** — `SavedView` VO + `SavedViewService` + Doctrine + in-memory storage adapters + Symfony voter for scope-aware visibility (private / team / public). See [ADR-019](../../docs/adr/0019-saved-views-architecture.md).
- **`SavedViewExtension` Twig extension** — renders the dropdown.

Audience
--------

[](#audience)

Standalone usage targets:

- Sonata users wanting better filter UX
- API Platform back-offices
- Hand-rolled admin DIY
- Any Symfony app that builds filter forms manually

For EasyAdmin v5 hosts, install [`polysource/easyadmin-filter-bridge`](../easyadmin-filter-bridge/) instead — it wraps this package with auto-discovery.

Install
-------

[](#install)

```
composer require polysource/filter
```

Register the bundle in `config/bundles.php`:

```
return [
    Polysource\Filter\PolysourceFilterBundle::class => ['all' => true],
];
```

Extend it
---------

[](#extend-it)

NeedImplementPersist saved views in Redis / Mongo / your HTTP service`SavedViewStorageInterface` (5 methods)Resolve which "team" a user belongs to (for shared views)`SavedViewTeamResolverInterface` (1 method)Format a chip your way ("3 statuses" instead of "paid, shipped, …")`ChipFormatterInterface` (1 method, ADR-016)Take over the URL → criteria → form pipeline`FilterMapperInterface` / `FilterFormatterInterface` / `FilterRendererInterface`See the [full extensibility map](../../docs/user/extensibility.md).

Documentation
-------------

[](#documentation)

- [Filter walkthrough](../../docs/user/filter/)
- [Saved views walkthrough](../../docs/user/filter/saved-views.md)
- [Standalone demo](../../examples/filter-standalone-demo/)

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance86

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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

Total

25

Last Release

68d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/41d53ab82016651b0a4a9ef71644a54f934d8bf54ccbc59fc0183f994213ef38?d=identicon)[samaym](/maintainers/samaym)

---

Tags

symfonyfilterformpolysource

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/polysource-filter/health.svg)

```
[![Health](https://phpackages.com/badges/polysource-filter/health.svg)](https://phpackages.com/packages/polysource-filter)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M400](/packages/easycorp-easyadmin-bundle)[chameleon-system/chameleon-base

The Chameleon System core.

1028.7k5](/packages/chameleon-system-chameleon-base)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M600](/packages/shopware-core)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.2k18.1k](/packages/prestashop-prestashop)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k64](/packages/open-dxp-opendxp)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)

PHPackages © 2026

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