承接 polysource/filter 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

polysource/filter

最新稳定版本:v0.1.2

Composer 安装命令:

composer require polysource/filter

包简介

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

README 文档

README

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 monorepo. MIT-licensed.

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 viewsSavedView VO + SavedViewService + Doctrine + in-memory storage adapters + Symfony voter for scope-aware visibility (private / team / public). See ADR-019.
  • SavedViewExtension Twig 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

composer require polysource/filter

Register the bundle in config/bundles.php:

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

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

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固