安装方式
在composer.json中添加
"phprookiehbb/pagination": "dev-master"或者composer require phprookiehbb/pagination:dev-master使用方式use Crasphb\Pagination;
$pagination = new Pagination($target,1,['style' => 1,'simple'=>false,'allCounts'=>true,'nowAllPage'=>true,'toPage'=>true]);
//数组的分页后的元素
$item = $pagination->getItem();
//分页样式的渲染
$page = $pagination->render();参数解释
simple模式

st



allCount,nowAllPage,toPage模式

内容详见博客https://crasphter.cn/article/38
github地址https://github.com/phprookiehbb/Pagination,欢迎大家star
最佳答案