eonx-com / easy-pagination
Provides a generic way to handle pagination data from clients
Package info
github.com/eonx-com/easy-pagination
Type:symfony-bundle
pkg:composer/eonx-com/easy-pagination
Requires
- php: ^8.2
- doctrine/collections: ^1.7.2 || ^2.1
- doctrine/dbal: ^3.8
- doctrine/orm: ^2.20
- eonx-com/easy-utils: ^6.22.4
- spatie/url: ^2.2
- symfony/config: ^7.2
- symfony/dependency-injection: ^7.2
- symfony/http-foundation: ^7.2
- symfony/http-kernel: ^7.2
- symfony/string: ^7.2
Requires (Dev)
- doctrine/doctrine-bundle: ^2.12
- laravel/lumen-framework: ^11.0
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^10.5.63|^11.5.50|^12.5.8
- symfony/uid: ^7.2
This package is auto-updated.
Last update: 2026-06-09 10:46:58 UTC
README
EonX - EasyPagination
Provides a generic way to handle pagination data from clients.
You are wondering if this package could be useful to you, right? Here are some points to help you find out:
- You have an PHP application
- You have to handle pagination data from your clients
- You are sick of having to resolve the "page" and "perPage" (or however you want to call those parameters) again and again
- Or sick of hearing "The pagination doesn't work for the blog posts comments" and realise you have a typo in "parPage"
- ...
This package provides you with out-the-box tools to implement a generic, centralised and consistent pagination data handling system to keep you away from any troubles :)
Documentation
Installation
The recommended way to install this package is to use Composer.
$ composer require eonx-com/easy-pagination
How it works
This package provides different "resolvers" which will extract the pagination data from a request according to your configuration. To guarantee interoperability, the resolvers expect a PSR7 ServerRequestInterface, if your project uses it too then perfect!
Resolvers
Can't you find your happiness in the existing resolvers? Please let us know or even better create a PR :)