# aplus-framework/pagination

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/aplus-framework-pagination).**

212 stars · 5 forks · PHP · MIT

## Links

- GitHub: https://github.com/aplus-framework/pagination
- Homepage: https://aplus-framework.com/packages/pagination
- awesome-repositories: https://awesome-repositories.com/repository/aplus-framework-pagination.md

## Topics

`aplus` `aplus-framework` `bootstrap` `bulma` `composer` `framework` `full-stack` `gitlab` `head` `header` `library` `pager` `pagination` `php` `php8` `phpoop` `phpstorm` `semantic-ui` `vscode`

## Description

Pagination is a PHP data pagination library that splits large collections of database records or arrays into manageable pages. It operates as a standalone utility handling offset calculation, page numbering, and result splitting for raw arrays or database queries.

The library computes data slices and navigation boundaries using explicit limit and offset values derived from incoming request parameters. It automatically extracts current page indicators and item counts from query strings to determine the active view state. Through state-driven navigation generation, it computes previous, next, and jump control states to build complete pagination interfaces.

Template-driven HTML rendering generates pagination control markup by populating structural view templates with dynamically calculated page number variables. The framework-agnostic core logic operates independently of specific web application frameworks or database drivers, supporting backend list filtering and web user interface navigation generation.

## Tags

### Data & Databases

- [Pagination](https://awesome-repositories.com/f/data-databases/pagination.md) — Splits large collections of database records or arrays into manageable pages.
- [Collection Pagination](https://awesome-repositories.com/f/data-databases/collection-pagination.md) — Splits large collections of records into manageable pages and generates navigation controls. ([source](https://github.com/aplus-framework/pagination/blob/master/README.md))

### Development Tools & Productivity

- [Collection Pagination Utilities](https://awesome-repositories.com/f/development-tools-productivity/collection-pagination-utilities.md) — Provides a software utility handling offset calculation and result splitting for arrays or queries.

### Software Engineering & Architecture

- [PHP](https://awesome-repositories.com/f/software-engineering-architecture/api-pagination/pagination-libraries/pagination-libraries/php.md) — Splits large collections of database records or arrays into manageable pages in PHP applications.

### User Interface & Experience

- [Framework Agnostic UI Logic](https://awesome-repositories.com/f/user-interface-experience/framework-agnostic-ui-logic.md) — Encapsulates pagination calculations in a standalone library independent of application frameworks.
- [Page Number Link Generators](https://awesome-repositories.com/f/user-interface-experience/links/internal-page-link-resolvers/page-number-link-generators.md) — Builds page number links and navigation controls to render pagination interfaces in templates.
- [State-Driven Navigations](https://awesome-repositories.com/f/user-interface-experience/navigation-actions/state-driven-navigations.md) — Computes previous, next, and jump control states to build complete pagination interfaces.

### Web Development

- [Limit Offset Pagination](https://awesome-repositories.com/f/web-development/limit-offset-pagination.md) — Computes data slices and navigation boundaries using explicit limit and offset values.
- [Query Parameter Parsing](https://awesome-repositories.com/f/web-development/query-parameters/query-parameter-binding/query-parameter-parsing.md) — Extracts explicit limit and offset values directly from incoming request query parameters.
- [Template-Driven Rendering](https://awesome-repositories.com/f/web-development/rendering-templating/server-side-rendering/template-driven-rendering.md) — Generates pagination control markup by rendering structural view templates with page number variables.
- [Request Parameter Binding](https://awesome-repositories.com/f/web-development/request-body-handling/request-body-alterations/request-body-attachers/structured-body-binding/request-parameter-binding.md) — Extracts current page indicators and item counts automatically from incoming query strings.
