承接 omerkamcili/pagination 相关项目开发

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

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

omerkamcili/pagination

Composer 安装命令:

composer require omerkamcili/pagination

包简介

Calculate pages with take, skip and total parameters and then create pagination links

README 文档

README

Calculate and create urls from take, skip and total parameters for pagination.

Install

Install package with composer

composer install omerkamcili\pagination

Example

$data = [
    'total' => 359,
    'skip'  => 20,
    'url'   => 'http://www.yourapp.com/currentPage',
];

$pagination = new \OmerKamcili\Pagination\Pagination($data);

print_r($pagination);


foreach($pagination->pages as $page => $url){
    echo "Page $page: $url"; 
}

Parameters

All parameters public, you can access from outside and you can set with construct method

Parameter Type Description
take integer Set take parameter
skip integer Set skip parameter
total integer Set total parameter
url string Set url for use about pagination
currentPage integer Will be calculated auto
totalPages integer Will be calculated auto
takeLabel string You can change take name ( for example limit )
skipLabel string You can change skip name ( for example offset )
nextPage string Will be created auto ( not implemented )
previousPage string Will be created auto ( not implemented )
firstPage string Will be created auto ( not implemented )
lastPage string Will be created auto ( not implemented )
pages array Will be created pages, you can iterate the created pages
walkPageNumber integer Number of pagination item, ( default 3 meanings 11 - 12 - 13 - [14] - 15 - 16 - 17 )

Contributing

You can create merge request or you can create issue card, there is no rules about this.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2019-12-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固