dxw/pagination

This package is abandoned and no longer maintained. No replacement package was suggested.

Unit-tested framework-agnostic pagination that works with Bootstrap and Foundation

v1.0.1 2024-07-02 13:35 UTC

README

dxw/pagination

Installation

composer require dxw/pagination

Usage

<?php
$pagination = new \Dxw\Pagination($paged, $max, 2, 1, function ($n) use ($args) { $args['paged'] = $n; return add_query_arg($args, get_bloginfo('url')); });
?>
...
<?php echo $pagination->render() ?>