PHPackages                             thinkphp6/thinkphp-extend-paginator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. thinkphp6/thinkphp-extend-paginator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

thinkphp6/thinkphp-extend-paginator
===================================

ThinkPHP 6 分页扩展

v1.0.1(4y ago)025MITPHPPHP ^7.2|^8.0

Since Aug 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/thinkphp6/thinkphp-extend-paginator)[ Packagist](https://packagist.org/packages/thinkphp6/thinkphp-extend-paginator)[ Docs](https://github.com/thinkphp6/thinkphp-extend-paginator)[ RSS](/packages/thinkphp6-thinkphp-extend-paginator/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

ThinkPHP ORM 分页驱动库
==================

[](#thinkphp-orm-分页驱动库)

内含以下前端框架的分页驱动

- [Bootstrap4](#bootstrap4)
- [Bootstrap5](#bootstrap5)
- [Layui](#layui)
- [Amaze UI](#amaze-ui)
- [Foundation](#foundation)

安装
--

[](#安装)

Usage is simple, to install, add the following to your project's composer.json:

```
    "repositories": [
        {
            "url": "https://github.com/thinkphp6/thinkphp-extend-paginator.git",
            "type": "git"
        }
    ]
```

Then add the library in the usual way using composer:

```
composer require thinkphp6/thinkphp-extend-paginator:dev-main

```

配置
--

[](#配置)

### 1.服务提供定义文件里重新绑定服务

[](#1服务提供定义文件里重新绑定服务)

编辑`app/provider.php`文件，在该文件里重新绑定`think\Paginator`分页服务，该方法适用于ThinkPHP6，全局生效。

```
return [
    'think\Paginator' => \wanyi\thinkExtendPaginator\Bootstrap4::class
];
```

### 2.公共函数文件里绑定服务

[](#2公共函数文件里绑定服务)

编辑`app/common.php`文件，在该文件里重新绑定`think\Paginator`分页服务，该方法适用于ThinkPHP6，全局生效。
如果想单应用生效，请在应用的公共函数文件里重新绑定`think\Paginator`分页服务，如：`app/admin/common.php`。

```
// 设置服务注入
\think\facade\App::bind('think\Paginator', \wanyi\thinkExtendPaginator\Bootstrap4::class);
```

如果只想一个地方生效，可以在进行分页查询前，使用该代码重新绑定`think\Paginator`分页服务。

```
// 设置服务注入
\think\facade\App::bind('think\Paginator', \wanyi\thinkExtendPaginator\Bootstrap4::class);

// 获取users表数据并进行分页
$list = \think\facade\Db::table('users')->paginate();

```

### 3.配置文件里定义分页类

[](#3配置文件里定义分页类)

编辑`config/paginate.php`文件
修改`type`配置项的值为`\wanyi\thinkExtendPaginator\Bootstrap4::class`,
该方法仅适用于ThinkPHP5.1.

```
return [
    'type' => \wanyi\thinkExtendPaginator\Bootstrap4::class,
];
```

已支持的前端框架
--------

[](#已支持的前端框架)

### Bootstrap4 - 5

[](#bootstrap4---5)

框架官方文档：
框架官方文档：

```
\think\facade\App::bind('think\Paginator', \bigDream\thinkPaginatorDriver\Bootstrap4::class);
\think\facade\App::bind('think\Paginator', \bigDream\thinkPaginatorDriver\Bootstrap5::class);
```

### Layui

[](#layui)

框架官方文档：

```
\think\facade\App::bind('think\Paginator', \bigDream\thinkPaginatorDriver\Layui::class);
```

### Amaze UI

[](#amaze-ui)

框架官方文档：

```
\think\facade\App::bind('think\Paginator', \bigDream\thinkPaginatorDriver\AmazeUI::class);
```

### Foundation

[](#foundation)

框架官方文档：

```
\think\facade\App::bind('think\Paginator', \bigDream\thinkPaginatorDriver\Foundation::class);
```

说明
--

[](#说明)

- 在bigDream/thinkPaginatorDriver 上修改，二次发布。
    \[[https://github.com/big-dream/think-paginator-driver\]\[1](https://github.com/big-dream/think-paginator-driver][1)\]

其它
--

[](#其它)

你所用的前端框架不在这里？欢迎提交PR，或者在Issues里告诉我。

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1751d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2613794?v=4)[NT Pte Ltd](/maintainers/ninetian)[@ninetian](https://github.com/ninetian)

---

Top Contributors

[![ninetian](https://avatars.githubusercontent.com/u/2613794?v=4)](https://github.com/ninetian "ninetian (14 commits)")

---

Tags

paginatorpaginator-alphaphpthinkphpthinkphp6tp6paginatordriverthinkphpthinkphp6tp6extend paginator

### Embed Badge

![Health badge](/badges/thinkphp6-thinkphp-extend-paginator/health.svg)

```
[![Health](https://phpackages.com/badges/thinkphp6-thinkphp-extend-paginator/health.svg)](https://phpackages.com/packages/thinkphp6-thinkphp-extend-paginator)
```

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[knplabs/knp-components

Knplabs component library

77443.6M46](/packages/knplabs-knp-components)[alchemy/binary-driver

A set of tools to build binary drivers

19110.9M39](/packages/alchemy-binary-driver)[beberlei/porpaginas

Library that generically solves several pagination issues with DAO/repository abstractions.

163612.6k11](/packages/beberlei-porpaginas)[balbuf/composer-git-merge-driver

Custom git merge driver to minimize merge conflicts in composer.json and composer.lock files.

137268.0k](/packages/balbuf-composer-git-merge-driver)[laminas/laminas-paginator

Paginate collections of data from arbitrary sources

245.7M84](/packages/laminas-laminas-paginator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
