承接 jinfakeji168/pagination 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

jinfakeji168/pagination

最新稳定版本:v1.1.1

Composer 安装命令:

composer require jinfakeji168/pagination

包简介

适用于所有程序的数组分页,内置分页样式,可定制样式,稍微修改一下可使用与所有的情形下的数组分页

README 文档

README

数组分页,可定制样式,内置3种样式,稍微修改一下可使用与所有的情形下的数组分页

Installation

Pagination is available on Packagist.Just add this line to your composer.json file:

"phprookiehbb/pagination": "dev-master"

or run

composer require phprookiehbb/pagination:dev-master

Example

use Crasphb\Pagination;
$pagination = new Pagination($target,1,['style' => 1,'simple'=>false,'allCounts'=>true,'nowAllPage'=>true,'toPage'=>true]);
//数组的分页后的元素
$item = $pagination->getItem();
//分页样式的渲染
$page = $pagination->render();

Explanation

参数 类型 说明
target array 需要分页的数组
defaultPageSize int 每页的数目
style int 分页样式,可选值1,2,3
simple boolean true:简单的分页样式,false:复杂的分页样式
allCounts boolean 显示总页数
nowAllPage boolean 显示现在的页码
toPage boolean 跳转页码的功能

Show

simple模式

simple模式

style = 1,2,3

Image1 text

Image1 text

Image1 text

allCount,nowAllPage,toPage模式

Image1 text

统计信息

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

GitHub 信息

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

其他信息

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