Download the PHP package bentools/pager without Composer
On this page you can find all versions of the php package bentools/pager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bentools/pager
More information about bentools/pager
Files in bentools/pager
Download bentools/pager
More information about bentools/pager
Files in bentools/pager
Vendor bentools
Package pager
Short Description A simple pager class with delta management
License MIT
Homepage https://github.com/bpolaszek/bentools-pager
Package pager
Short Description A simple pager class with delta management
License MIT
Homepage https://github.com/bpolaszek/bentools-pager
Please rate this library. Is it a good library?
Informations about the package pager
bentools/pager
PHP7.1+ - A simple OOP pager, the way it should be, following SOLID principles.
Usage
You just need to provide 3 informations:
- The number of items per page
- The current page number (can be provided by factories reading the current Url)
- The total number of items.
Shortcuts:
Example
Output:
Delta Management
When you have a huge number of pages, you can use the DeltaPager
decorator to show only relevant pages.
Output:
Installation
composer require bentools/pager
Tests
./vendor/bin/phpunit
All versions of pager with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
psr/http-message Version ^1.0
bentools/uri-factory Version ^1.0||^2.0
bentools/querystring Version ^1.0
psr/http-message Version ^1.0
bentools/uri-factory Version ^1.0||^2.0
bentools/querystring Version ^1.0
The package bentools/pager contains the following files
Loading the files please wait ....