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

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

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

rundiz/pagination

Composer 安装命令:

composer require rundiz/pagination

包简介

The highly customizable PHP pagination class.

README 文档

README

PHP Pagination.
The highly customizable PHP pagination class. Tested on PHP 8.5.

Latest Stable Version License Total Downloads

Example:

// You don't need to include or require file if you install via Composer.
require_once '../Rundiz/Pagination/Pagination.php';

$total_records = 1000;
$start = (isset($_GET['start']) ? intval($_GET['start']) : 0);
if ($start < 0) {
    $start = 0;
}
$limit = 10;

$Pagination = new \Rundiz\Pagination\Pagination();
// Set options to the pagination class.
$Pagination->base_url = 'http://localhost/your-project/page.php?start=%PAGENUMBER%';// *This property must be set.
$Pagination->total_records = $total_records;// *This property must be set.
$Pagination->page_number_value = $start;// *This property must be set.
echo $Pagination->createLinks();

More example is in tests folder.

Pagination parts description

Pagination

  • "before unavailable" items number can be set via "unavailable_before" property. Example: $Pagination->unavailable_before = 1;
  • "unavailable" text can be set via "unavailable_text" property. Example: $Pagination->unavailable_text = '..';
  • "adjacent pages" can be set the number via "number_adjacent_pages" property. Example: $Pagination->number_adjacent_pages = 3;
  • "after unavailable" items number can be set via "unavailable_after" property. Example: $Pagination->unavailable_after = 2;

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-04-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固