aelfannir/doctrine-api-paginator
Symfony bundle for paginating Doctrine ORM queries with API-friendly filters. Supports property and nested compound filters (AND/OR) and operator-based comparisons to build query conditions cleanly for result lists.
Adopt if:
AND/OR conditions, dynamic property filtering).get() + client-side pagination for large datasets).Look Elsewhere if:
spatie/laravel-query-builder or Eloquent’s built-in pagination).api-platform/core for production-critical systems).cakephp/query-builder).For Executives: "This package lets us deliver faster, more scalable APIs for data-heavy features—like admin dashboards or product catalogs—without overloading our backend. By standardizing pagination and filtering with Doctrine, we reduce development time by 30%+ and ensure consistent performance as user queries grow. It’s a low-risk ‘buy’ that aligns with our tech stack (Laravel + Doctrine) and avoids reinventing pagination wheels."
For Engineers:
"The aelfannir/doctrine-api-paginator gives us a battle-tested way to handle complex Doctrine queries with nested filters (AND/OR) and efficient SQL pagination. It’s a drop-in solution for APIs where we’d otherwise write repetitive query logic. The trade-off? Minimal adoption risk (Doctrine-specific), but the payoff is cleaner code and better performance for large datasets. Let’s prototype it for [X feature] and compare it to [alternative]."
For Developers:
*"This package replaces manual WHERE clause building with a declarative filter system. For example, instead of writing:
$qb->andWhere('u.status = :status')->orWhere('u.createdAt > :date');
You define filters programmatically:
$filter = new CompoundFilter([
new PropertyFilter('status', '=', 'active'),
new PropertyFilter('createdAt', '>', new \DateTime('-1 week'))
]);
It’s perfect for APIs where users need to search/filter data dynamically."*
How can I help you explore Laravel packages today?