medisolbv/pagination
最新稳定版本:1.0.0
Composer 安装命令:
composer require medisolbv/pagination
包简介
A simple package to allow easy generation of pagination links
README 文档
README
This is a simple package to generate the correct pagination links.
Usage
A new Paginator object can be instantiated with the Paginator::create method. This method takes two parameters;
int $currentPageint $totalPages.
Generating links
After instantiating a new Paginator object, the generate method can be used to generate the required links.
Getting the links
After generating links, you can use these links by calling the Paginator::getLinks method. When returning the result
in JSON format, the links will be serialized to JSON.
Available link methods
PaginationLink::getPage: returns the link's page numberPaginationLink::isActive: returns whether the current page is this pagePaginationLink::isDisabled: returns whether this page is disabled (for example, the ellipsis between different link ranges).
统计信息
- 总下载量: 150
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-06