PHPackages                             big-dream/think-paginator-driver - 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. big-dream/think-paginator-driver

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

big-dream/think-paginator-driver
================================

ThinkPHP6分页驱动

1.0.3(3y ago)1671211MITPHPPHP &gt;=7.2.5

Since Oct 30Pushed 3y agoCompare

[ Source](https://github.com/big-dream/think-paginator-driver)[ Packagist](https://packagist.org/packages/big-dream/think-paginator-driver)[ RSS](/packages/big-dream-think-paginator-driver/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (1)Versions (6)Used By (1)

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

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

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

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

安装
--

[](#安装)

```
composer require big-dream/think-paginator-driver

```

配置
--

[](#配置)

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

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

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

```
return [
    'think\Paginator' => \bigDream\thinkPaginatorDriver\Bootstrap4::class
];
```

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

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

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

如果想单应用生效，请在应用的公共函数文件里重新绑定`think\Paginator`分页服务，如：`app/admin/common.php`。

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

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

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

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

```

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

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

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

```
return [
    'type' => \bigDream\thinkPaginatorDriver\Bootstrap4::class,
];
```

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

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

### Bootstrap4、Bootstrap5

[](#bootstrap4bootstrap5)

框架官方文档：

```
\think\facade\App::bind('think\Paginator', \bigDream\thinkPaginatorDriver\Bootstrap4::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);
```

其它
--

[](#其它)

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

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

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

Every ~300 days

Total

5

Last Release

1194d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.1.0

1.0.3PHP &gt;=7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/1297b521c54f7845f4f997452b740d8a2ea63bafebfed6e6b4275b0b0cce11eb?d=identicon)[jwj](/maintainers/jwj)

---

Top Contributors

[![big-dream](https://avatars.githubusercontent.com/u/9215157?v=4)](https://github.com/big-dream "big-dream (18 commits)")

---

Tags

paginatordriverthinkphp

### Embed Badge

![Health badge](/badges/big-dream-think-paginator-driver/health.svg)

```
[![Health](https://phpackages.com/badges/big-dream-think-paginator-driver/health.svg)](https://phpackages.com/packages/big-dream-think-paginator-driver)
```

###  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)[coffeecode/paginator

Paginator is simple and is ready to generate results navigation in your application

59658.1k1](/packages/coffeecode-paginator)[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)

PHPackages © 2026

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