gregosphatos/doctrine-filters-bundle
A Symfony bundle for Doctrine that lets you register and enable SQL filters declaratively through configuration, so you can apply reusable query conditions such as soft-delete or tenant scoping without touching repository code.
where clause. This package is a thin bundle around that native capability, so the real decision it informs is whether to centralize these rules at the persistence layer or keep them in repositories/services.Doctrine\ORM\Query\Filter\SQLFilter plus a config flag) is a few dozen lines; skim this repo for the shape of the solution, then implement it yourself. A dependency with no release history and no downstream users adds supply-chain and maintenance risk for near-zero code savings.stof/doctrine-extensions-bundle (Gedmo) or knplabs/doctrine-behaviors, both battle-tested.SQLFilter with tests around tenant leakage.Executive summary: This package is a small Symfony helper for enforcing data-visibility rules (tenant isolation, soft deletes, published-only content) inside the ORM layer so they cannot be forgotten in application code. The pattern is genuinely valuable — it converts "we hope every query is scoped" into "every query is scoped by construction," which materially lowers breach and compliance risk.
But do not adopt this repository. It has no stars, no dependents, and no visible maintenance, and it is Symfony/Doctrine-specific — it does not fit a Laravel codebase. Recommendation: treat it as a design reference, allocate a short engineering spike to implement the same behavior with Doctrine's native SQLFilter (or Eloquent global scopes on Laravel), and adopt a maintained library if we need broader soft-delete/audit features. Cost: days, not weeks. Risk of adopting the package as-is: unnecessary and asymmetric.
How can I help you explore Laravel packages today?