carloscarucce / corviz-pagination-helpers
Pagination helpers to aplications made with corviz/framework
v1
2022-04-23 18:23 UTC
Requires
- php: >=7
- corviz/framework: 0.*@alpha
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