ecommit/doctrine-utils
Small set of Doctrine ORM QueryBuilder utilities: accurate COUNT helpers, a paginator, and filter helper methods. Install via Composer and use to simplify common query building patterns in your PHP projects.
QueryBuilder-based pagination (DBAL/ORM). Eliminates manual COUNT queries and LIMIT/OFFSET logic, improving developer velocity and reducing bugs.count_by_alias, count_by_sub_request), ensuring performance parity and predictable behavior for large datasets.QueryBuilderFilter) for complex queries, reducing maintenance overhead for features like search/faceted navigation.OFFSET/FETCH).Pagination or API Platform’s tools).For Executives: "This package cuts 30–50% of the dev time needed to implement pagination and filtering in our Doctrine-based APIs. By standardizing these patterns, we reduce technical debt and accelerate feature delivery—especially for admin tools and search. The MIT license and lightweight design mean minimal risk, while the focus on QueryBuilder integration aligns perfectly with our existing stack. Early adoption could unlock faster iterations for [Product X]’s data-heavy features."
For Engineering: *"This solves three pain points:
COUNT queries separately—just pass your QueryBuilder to DoctrinePaginatorBuilder and get counts + paginated results in one call.QueryBuilderFilter helper abstracts dynamic WHERE clauses (e.g., ?search=term), reducing boilerplate for search/faceted navigation.count_by_alias for performance), avoiding fragmented approaches across the codebase.Tradeoffs: It’s Doctrine-only (no Eloquent support) and lacks some advanced features, but it’s a drop-in solution for 80% of our use cases. For edge cases, we can extend it or fall back to custom SQL. Let’s pilot it in [Module Y] to validate the win."*
How can I help you explore Laravel packages today?