pagerfanta/doctrine-collections-adapter
Adapter connecting Pagerfanta pagination to Doctrine Collections. Paginate ArrayCollection and other Collection implementations with limit/offset slicing and count support, enabling easy integration of Doctrine collection data into Pagerfanta-based UIs.
Criteria or DQL).LIMIT/OFFSET or client-side slicing) while keeping the solution lightweight compared to full-fledged API platforms (e.g., Hasura).ArrayCollection, Criteria-filtered results).simplePaginate().paginate() or cursor() is sufficient (and more integrated).QueryBuilder::setFirstResult() or LIMIT/OFFSET directly."This package lets us paginate large Doctrine datasets efficiently, cutting server load and improving response times for features like admin dashboards or reporting tools. By leveraging Pagerfanta—a battle-tested library—we avoid reinventing pagination logic while keeping the solution lightweight. It’s a drop-in fix for Doctrine-heavy workflows, reducing development time and aligning with our existing Laravel/PHP stack. Low maintenance risk (MIT license) and minimal overhead make it a safe bet for scaling backend features."
*"The doctrine-collections-adapter enables Pagerfanta to paginate Doctrine Collections seamlessly, eliminating manual LIMIT/OFFSET queries. Key benefits:
"This package ensures smooth pagination for Doctrine-driven interfaces (e.g., admin tables, reporting dashboards) without relying on client-side JavaScript. It supports standard pagination controls (next/prev links, page numbers) and can integrate with Laravel’s Blade or API responses. Key for maintaining performance as user bases grow—critical for tools like user management or order history."
How can I help you explore Laravel packages today?