aelfannir/doctrine-query-paginator
Symfony bundle providing Doctrine query pagination with a flexible filter system. Supports property and compound (AND/OR, nested) filters and operator-based comparisons to build result sets from request-driven criteria.
Adopt if:
AND/OR conditions on multiple fields).N+1 queries or performance pitfalls).Look elsewhere if:
tanstack/table).django-filter or Ruby’s ransack.For Executives: "This package lets us standardize pagination and filtering across our Doctrine-based systems—reducing backend dev time by 30% for features like admin dashboards or API endpoints. It’s a lightweight, open-source alternative to custom code or third-party tools, cutting costs while improving scalability. For example, our [X] team could ship the new user management portal 2 weeks faster with reusable filters instead of writing one-off queries."
For Engineering: *"This solves our recurring pain point of building and maintaining ad-hoc query filters. Key benefits:
status=active AND created_after=2023) and reuse across controllers.N+1 queries.AND/OR conditions for complex use cases.Tradeoff: Minimal control over raw SQL, but the abstraction saves time and reduces bugs. Let’s prototype it for [specific feature] and compare to our current approach."*
For Developers: *"This package abstracts away boilerplate for Doctrine queries with filters/pagination. Example:
$filter = new CompoundFilter([
new PropertyFilter('status', '=', 'active'),
new PropertyFilter('created_at', '>', new \DateTime('2023-01-01'))
]);
$paginator = new DoctrineQueryPaginator($entityManager, $filter);
$results = $paginator->getResults(); // Auto-paginated!
No more writing repetitive DQL or fighting with query builders. Perfect for CRUD interfaces or APIs."*
How can I help you explore Laravel packages today?