log1x/pagi
Pagi is a lightweight pagination package for WordPress and Sage themes that brings a Laravel-style API to archive, search, and blog listings. It provides a simple helper and template-friendly rendering for clean, accessible page links in Laravel-based WordPress projects.
Architecture fit
log1x/pagi is a thin adapter that exposes WordPress query results through Laravel’s Illuminate\Pagination components. It fits best in Laravel-influenced WordPress stacks, especially Sage/Acorn themes using Blade and Composer.WP_Query and Laravel paginator primitives. That keeps architectural coupling narrow but makes it dependent on both WordPress query behavior and Illuminate paginator internals.Integration feasibility
Technical risk
WP_Query globals and rewrite/query-var behavior, and the package’s small-maintainer footprint.Key questions
illuminate/* and PHP constraint ranges in v1.1.1, and do they widen or narrow support for older Laravel versions?WP_Query variants?Stack fit
Migration path
illuminate/pagination, illuminate/support, PHP, WordPress, and Acorn versions.paginate_links() or custom pagination before removing legacy markup.Compatibility
WP_Query instances, and offset-based queries.Sequencing
log1x/pagi to a known-good version.rel attributes, and no-index behavior.Maintenance
Support
Scaling
COUNT queries. On large WordPress datasets, validate query cost and consider caching counts or avoiding exact totals where the UI allows.Failure modes
WP_Query offsets or posts_per_page overrides.Ramp-up
WP_Query and Illuminate pagination.How can I help you explore Laravel packages today?