Download the PHP package themehybrid/hybrid-pagination without Composer

On this page you can find all versions of the php package themehybrid/hybrid-pagination. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package hybrid-pagination

Hybrid\Pagination

Hybrid Pagination is a fork of the core WordPress paginate_links() function to give theme authors full control over the output of their pagination. Unfortunately, core doesn't give theme authors much flexibility for altering the markup and classes. This class is meant to solve this issue. It also standardizes the pagination used for posts, singular (multi-page) posts, and comments.

Requirements

Registration

Register the service provider with your application:

This binds Hybrid\Pagination\Contracts\Pagination to Hybrid\Pagination\Pagination in the container. Because it's bound to the contract rather than the concrete class, you can swap in your own implementation by binding your own class to the same contract before this provider registers.

Usage

Three contexts are supported out of the box: posts (the main loop), post (singular, multi-page posts split with <!--nextpage-->), and comments. Each context pulls its own sensible defaults (base URL, current page, total pages) from WordPress — you only need to pass $args to override markup or behavior.

Template tags

The package ships procedural helpers for use directly in theme templates:

display() and render() are shorthand for pagination( $context, $args )->make()->display() and ->make()->render() respectively — make() builds the $items array, display()/render() turn it into markup.

Resolving from the container

Contexts

Common arguments

Any argument accepted by core's paginate_links() is supported, alongside the following additions for controlling markup and classes:

Argument Default Description
container_tag nav Wrapping element tag.
container_class pagination pagination--%s Wrapping element class (%s = context).
title_tag h2 Title element tag.
title_class pagination__title screen-reader-text Title element class.
title_text '' Title text; title is omitted if empty.
list_tag ul List element tag.
list_class pagination__items List element class.
item_tag li Item element tag.
item_class pagination__item pagination__item--%s Item element class (%s = item type).
anchor_class pagination__anchor pagination__anchor--%s Link/span class (%s = item type).

Item types used for the %s placeholders above: link, current, dots, prev, next.

Filters

Swap posts for post or comments to target those contexts specifically.

Copyright and License

This project is licensed under the GNU GPL, version 2 or later.

2008 – 2026 © Theme Hybrid.


All versions of hybrid-pagination with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
themehybrid/hybrid-contracts Version ^1.0 || ^2.0
themehybrid/hybrid-core Version ^6.0 || ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package themehybrid/hybrid-pagination contains the following files

Loading the files please wait ...