medisolbv/pagination 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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;

  1. int $currentPage
  2. int $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 number
  • PaginationLink::isActive: returns whether the current page is this page
  • PaginationLink::isDisabled: returns whether this page is disabled (for example, the ellipsis between different link ranges).

统计信息

  • 总下载量: 150
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-06