Download the PHP package polysource/filter without Composer
On this page you can find all versions of the php package polysource/filter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download polysource/filter
More information about polysource/filter
Files in polysource/filter
Download polysource/filter
More information about polysource/filter
Files in polysource/filter
Vendor polysource
Package filter
Short Description Polysource — standalone filter primitive: form/datasource separation, session persistence, mapper/formatter/renderer pipeline, multi-mode UI (integrated, subpanel) with chips bar.
License MIT
Homepage https://github.com/polysource/polysource
Package filter
Short Description Polysource — standalone filter primitive: form/datasource separation, session persistence, mapper/formatter/renderer pipeline, multi-mode UI (integrated, subpanel) with chips bar.
License MIT
Homepage https://github.com/polysource/polysource
Please rate this library. Is it a good library?
Informations about the package filter
polysource/filter
Filter primitives for Symfony admin UIs — usable standalone in any Symfony app, also the foundation of
polysource/easyadmin-filter-bridgeandpolysource/admin.
Part of the Polysource monorepo. MIT-licensed.
What it ships
FilterCollection+FilterCriterion— immutable value objects representing the active filter state, scoped by a stableid(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 —
SavedViewVO +SavedViewService+ Doctrine + in-memory storage adapters + Symfony voter for scope-aware visibility (private / team / public). See ADR-019. SavedViewExtensionTwig extension — renders the dropdown.
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 instead — it wraps this package with auto-discovery.
Install
Register the bundle in config/bundles.php:
Extend it
| Need | Implement |
|---|---|
| Persist 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.
Documentation
- Filter walkthrough
- Saved views walkthrough
- Standalone demo
All versions of filter with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
polysource/core Version ^0.1 || ^0.5 || ^0.7 || ^0.9
symfony/config Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/dependency-injection Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/event-dispatcher Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/form Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/http-foundation Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/http-kernel Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/translation Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/yaml Version ^5.4 || ^6.0 || ^7.0 || ^8.0
twig/twig Version ^3.0
polysource/core Version ^0.1 || ^0.5 || ^0.7 || ^0.9
symfony/config Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/dependency-injection Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/event-dispatcher Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/form Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/http-foundation Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/http-kernel Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/translation Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/yaml Version ^5.4 || ^6.0 || ^7.0 || ^8.0
twig/twig Version ^3.0
The package polysource/filter contains the following files
Loading the files please wait ...