ashleydawson/simple-pagination
Framework-agnostic pagination library for PHP. Provide callbacks to count total items and fetch a slice (offset/length), and it returns a Pagination object with items plus page metadata and ranges. Works with arrays, DB lists, Doctrine, Solr, and more.
PaginationFactory).getItems() returns mixed).For Executives: "This lightweight pagination library lets us standardize pagination across all data sources—databases, APIs, and even in-memory collections—without building custom logic. It’s a 2-week implementation for a feature that would otherwise take 3x longer to develop and maintain. The trade-off is minimal: we’re prioritizing speed over ultra-low latency, which aligns with our current user traffic and roadmap. For high-scale needs, we can always replace it later."
For Engineering: *"SimplePagination is a callback-driven, framework-agnostic solution that works with any iterable collection. Key benefits:
?page=2) and can be wrapped in a service class for consistency.spatie/laravel-pagination for future projects."How can I help you explore Laravel packages today?