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

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

jugt/think-paginator-driver
===========================

thinkphp6分页驱动

01PHP

Since Mar 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jugt/think-paginator-driver)[ Packagist](https://packagist.org/packages/jugt/think-paginator-driver)[ RSS](/packages/jugt-think-paginator-driver/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

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

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

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

- [JugtUI](#JugtUI)

安装
--

[](#安装)

```
composer require jugt/think-paginator-driver:dev-main

```

配置
--

[](#配置)

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

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

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

```
return [
    'think\Paginator' => \jugt\thinkPaginatorDriver\JugtUI::class
];
```

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

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

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

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

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

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

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

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

```

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

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

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

```
return [
    'type' => \jugt\thinkPaginatorDriver\JugtUI::class,
];
```

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

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

### JugtUI

[](#jugtui)

```
\think\facade\App::bind('think\Paginator', \jugt\thinkPaginatorDriver\JugtUI::class);
```

说明
--

[](#说明)

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

其它
--

[](#其它)

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

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/44c021753dd64dfa7eb012b4c76fae56b00edc967b996236fb5e1ccef295f53c?d=identicon)[jugt](/maintainers/jugt)

---

Top Contributors

[![jugt](https://avatars.githubusercontent.com/u/13483331?v=4)](https://github.com/jugt "jugt (6 commits)")

### Embed Badge

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

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

###  Alternatives

[summerblue/generator

Extend Laravel's generators scaffold.

34139.9k](/packages/summerblue-generator)[husseinalhammad/fontawesome-svg

PHP class to add Font Awesome 5+'s SVG icons inline without Javascript.

1811.3k](/packages/husseinalhammad-fontawesome-svg)

PHPackages © 2026

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