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.
Architecture fit: This package is designed specifically for Laravel applications implementing JSON:API standards, integrating seamlessly with Eloquent query builders and resource responses. It addresses a common pain point by standardizing pagination formatting per JSON:API specifications (e.g., links, meta, and data structures), reducing manual implementation effort. However, its suitability depends on whether the project strictly adheres to JSON:API conventions versus custom API formats.
Integration feasibility: Installation via Composer is trivial, but compatibility with current Laravel versions (e.g., 10.x) is unverified due to the suspicious "2026-02-21" release date (a
How can I help you explore Laravel packages today?