A better WordPress pagination utilizing Laravel's Pagination.
Install via Composer:
$ composer require log1x/pagi
use Log1x\Pagi\PagiFacade as Pagi;
$pagination = Pagi::build();
return $pagination->links();
To customize the view, simply publish it:
$ wp acorn vendor:publish --provider='Log1x\Pagi\PagiServiceProvider'
To use the newly generated view:
return $pagination->links('components.pagination');
For additional configuration, check out the Laravel Pagination documentation.
If you discover a bug in Pagi, please open an issue.
Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated.
Pagi is provided under the MIT License.