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
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