niladam / salette-pagination-plugin
🚀Official Pagination Plugin For Salette
1.0.0
2025-07-23 20:52 UTC
Requires
- php: >=7.4 < 8.0
- ext-json: *
- niladam/salette: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.75
- illuminate/collections: ^8.83
- pestphp/pest: ^1.23
- pestphp/pest-plugin-parallel: ^1.2
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^9
- squizlabs/php_codesniffer: ^3.12
Suggests
- illuminate/collections: Used to provide LazyCollections via the collect() method on paginators.
README
This is a translated and adapted version of the official Saloon Pagination Plugin, made compatible with PHP 7.4.
The original plugin requires PHP 8+, but this version was backported to support older projects still running on PHP 7.4. It retains all core functionality, including:
- Easy iteration over paginated API responses
- Mapping to custom DTOs
- Conversion to LazyCollections
- Asynchronous requests and pooling support
⚠️ Note: This is a forked and translated version of the official
saloonphp/pagination-plugin
. All credits for the original design and implementation go to the original authors. This package only aims to provide PHP 7.4 compatibility.
Installation
You can install this plugin via Composer:
composer require niladam/salette-pagination-plugin