spatie/laravel-json-api-paginate
Adds a jsonPaginate() method to Laravel’s Eloquent/Query Builder that follows the JSON:API pagination spec. Reads page[number] and page[size] request params and generates the required pagination links for API responses.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spiral/pagination | 0.84 | Spiral Pagination Toolkit provides lightweight, framework-agnostic pagination primitives for PHP apps. Build and pass around page limits/offsets and related metadata cleanly, with strong type safety, tests, and Psalm support. | 4 | 4 | 0 | 22K | 0 | 3.0 | 50.2 | MIT | 7 years ago | |
| cannibal/pagination-bundle | 0.83 | — | 1 | 1 | 1 | 0 | 0 | 0.0 | — | — | — | |
| beberlei/porpaginas | 0.83 | — | 163 | 164 | 19 | 9K | 0 | 17.4 | 27.4 | — | 2 months ago | |
| ecommit/paginator | 0.82 | Lightweight PHP paginator for arrays or ArrayIterator. Configure page, max_per_page, and data; optionally provide total count for large datasets. Iterate results, get last page, and use count() to know items on the current page. | 0 | 0 | 1 | 469 | 0 | 0.0 | 36.8 | MIT | — | |
| ashleydawson/simple-pagination | 0.82 | 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. | 18 | 19 | 5 | 566 | 1 | 3.0 | 20.2 | MIT | 7 years ago | |
| spatie/laravel-paginateroute | 0.82 | Adds a Laravel route macro to paginate via clean, translatable URLs like /news/page/2 instead of ?page=2. Includes a paginate route method and facade for generating pagination links. Note: this package is abandoned/unsupported—fork if needed. | 304 | 316 | 57 | 1K | 0 | 4.8 | 6.2 | MIT | 7 years ago | |
| spatie/laravel-query-builder | 0.80 | Build safe, flexible Eloquent queries from incoming API requests. Supports whitelisted filtering (partial/exact/scope/custom), sorting, includes, field selection, pagination, and grouped AND/OR filters—ideal for JSON:API-style endpoints with minimal boilerplate. | 4,449 | 4,465 | 411 | 1M | 0 | 64.4 | 38.8 | MIT | 1 month ago | |
| spatie/laravel-fractal | 0.79 | Laravel/Lumen wrapper for League Fractal to transform API data with a fluent, expressive syntax. Supports collections, includes, facades, and helper shortcuts to easily shape Eloquent results into consistent JSON-ready arrays. | 1,910 | 1,931 | 185 | 274K | 0 | 39.2 | 33.7 | MIT | 3 months ago |
How can I help you explore Laravel packages today?