lablnet / pagination
PHP Pagination package.
dev-master
2018-11-29 03:03 UTC
This package is auto-updated.
Last update: 2024-10-29 05:16:43 UTC
README
Simple pagination library implements a paging interface on collections of things.
Requirement
- PHP
- Composer
install
run this command
composer require lablnet/pagination
usage
<!-- Compiled and minified CSS --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> <!-- Compiled and minified JavaScript --> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> <?php use Lablnet\Pagination; require '../vendor/autoload.php'; $pag1 = new Pagination(100,10,5,'/'); echo $pag1->pagination(); $pag2 = new Pagination(1000,10,25,'https://example.com/blogs/'); echo $pag2->pagination();