met_mw / spagination
Simple pagination library for web-applications.
v1.0.0
2016-07-19 15:14 UTC
Requires
- php: >=5.6.0
Requires (Dev)
- phpunit/phpunit: ^5.4
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2024-11-18 06:53:11 UTC
README
SPagination
Simple independent library to create pagination in web-applications.
Install
composer require met_mw/spagination
Examples
Render
$Pagination = new Pagination(); $Pagination->setCount(100) ->setCountOnPage(10) ->setCurrentPageNumber(5) ->render();
Get as string
$Pagination = new Pagination(); $paginationHTML = $Pagination->setCount(100) ->setCountOnPage(10) ->setCurrentPageNumber(5) ->get();
License
The met-mw/SPagination package is open-sourced software licensed under the MIT license