carloscarucce/corviz-pagination-helpers

Pagination helpers to aplications made with corviz/framework

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/carloscarucce/corviz-pagination-helpers

v1 2022-04-23 18:23 UTC

This package is auto-updated.

Last update: 2025-09-24 02:21:29 UTC


README

Provides helper functions for pagination using corviz/framework query builder or native SQL query

Installation:

composer require carloscarucce/corviz-pagination-helpers

Both functions will return an array with the following indexes:

  • rows: array containing the rows in the current page
  • maxPage: integer number representing the maximum page
  • currentPage: integer number representing the current page
  • perPage: how many rows per page
  • totalRows: the total rows count of the non-paginated query