mouf/utils.common.paginable-interface
A tiny PHP interface from Mouf's common utilities for pagination. PaginableInterface lets classes expose paging info—such as offset and limit—so grids, lists, and query builders can handle page navigation uniformly. Lightweight, framework-agnostic, and easy to drop into existing PHP projects.
paginate($limit, $offset)). The decision it informs is not "should we adopt" but "should we spec our own." Copying the concept into an internal interface costs minutes; adding a dependency costs a supply-chain slot forever.total, hasMore, stable ordering under inserts, or deep-page performance.Consider it only if:
Look elsewhere (the common case) in essentially every other scenario:
LengthAwarePaginator, CursorPaginator, and paginate()/simplePaginate() on the query builder and Eloquent. Using them gives you counts, cursor support, serialization, and Blade/API integration for free.For executives (one line): This is not a product or a library with features — it is a single-interface contract with one GitHub star, zero dependents, and no release since 2017. We should not adopt it; if pagination consistency matters to the roadmap, we define that contract ourselves in under an hour and own it.
For engineering: The package is a PaginableInterface exposing paginate(limit, offset). MIT-licensed, so we can vendor the idea freely. Adopting it adds an unmaintained dependency and a Mouf-ecosystem namespace for a signature we can write ourselves; it also locks us into offset-only pagination, which won't survive contact with totals, cursor pagination, or large-offset performance. Recommend: use Laravel's paginator contracts where the framework applies, and an internal interface where it doesn't.
Trade-off summary: Cost of adoption ≈ cost of imitation, but adoption carries permanent maintenance and coupling risk for zero incremental capability. The decision is "no," and the useful output of this evaluation is the pagination contract spec we write ourselves.
How can I help you explore Laravel packages today?