cboxdk/statamic-filter-builder
Statamic Filter Builder adds configurable, faceted filtering to Statamic collections. Editors define filter fields while visitors narrow entries by taxonomy, dates, ranges, or custom values through a clean frontend UI, all without writing custom query code.
Cbox\FilterBuilder). Any planned Laravel 12 or Statamic 6 upgrade should now list this dependency as an explicit line item with a migration task, not an incidental Composer bump.Adopt when:
DragHandle, Combobox, SortableList, PublishFields), dark mode — over a bespoke admin UI.Tv2regionerne\StatamicFilterBuilder → Cbox\FilterBuilder) and re-test any custom code referencing the old namespace, published config, or stored field data.Look elsewhere or defer when:
tv2regionerne/statamic-filter-builder, redistributed under a new namespace. Forks carry real risk: upstream divergence, bus-factor of one, and unclear ownership of future fixes. Treat it as a community dependency and mirror it internally if it becomes load-bearing.composer.json before committing a platform upgrade timeline around it — this is the single blocking question to close.Executives / sponsors (one paragraph): We evaluated a Statamic addon that gives editors a drag-and-drop interface for building content filters and sorts, replacing what would otherwise be several weeks of custom admin development. The new v2.0.0 release modernises it for our target stack (Statamic 6, Laravel 12, PHP 8.2+), adds dark mode, inline validation feedback, and Danish localisation, and ships with static analysis at the strictest level plus an automated test suite — meaningful evidence of quality for a free dependency. The trade-offs are that it is a community fork rather than vendor-supported, it locks us to the newest Statamic major, and it requires a one-time code migration due to a namespace change. Recommendation: adopt for editorial filtering, budget the migration explicitly in the platform-upgrade plan, and keep an internal fork as contingency.
Engineering: The upgrade is a breaking change, not a drop-in. Action items: (1) confirm the true Statamic requirement — the notes say both "v6 rewrite" and "requires Statamic 5.x (v6 addon API)"; resolve against composer.json before sequencing; (2) update the namespace Tv2regionerne\StatamicFilterBuilder → Cbox\FilterBuilder anywhere we reference it, including published config and any container bindings; (3) budget a regression pass on scope behaviour, since scope now intersects fields across collections to match fieldtype semantics; (4) PHP 8.2+ and Laravel 12 are baseline prerequisites — verify CI images; (5) the Vue 3 Composition API rewrite means any local overrides of published views/composables must be re-applied, not merged.
Editorial / content ops: The interface now matches Statamic's own replicator card pattern with drag handles, collapsible cards and preview text, so it should feel familiar with no training. Already-added fields disappear from the dropdown (prevents duplicates), invalid items get a red border so editors can self-correct, switching collections and back preserves work, and the "Dynamic Values" field now carries an inline Antlers example. Read-only users see explanatory empty states instead of a blank panel.
Product recommendation: Adopt, conditional on closing the Statamic version ambiguity and confirming we are on the Laravel 12 / PHP 8.2 baseline within the current planning horizon. If the upgrade window slips, stay on v1.x and revisit — do not attempt to run v2.0.0 on an unsupported stack.
How can I help you explore Laravel packages today?