log1x/pagi

A better WordPress pagination.

Maintainers

Details

github.com/Log1x/pagi

Source

Issues

Fund package maintenance!
Log1x

Installs: 59 537

Dependents: 1

Suggesters: 0

Security: 0

Stars: 51

Watchers: 6

Forks: 8

Type:package

v1.1.0 2024-07-16 09:04 UTC

This package is auto-updated.

Last update: 2024-11-16 09:51:20 UTC


README

Latest Stable Version Total Downloads Build Status

A better WordPress pagination utilizing Laravel's Pagination.

Requirements

Installation

Install via Composer:

$ composer require log1x/pagi

Usage

Basic Usage

use Log1x\Pagi\PagiFacade as Pagi;

$pagination = Pagi::build();

return $pagination->links();

Customization

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.

Bug Reports

If you discover a bug in Pagi, please open an issue.

Contributing

Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated.

License

Pagi is provided under the MIT License.