PHPackages                             dutchcodingcompany/cursor-pagination - 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. [API Development](/categories/api)
4. /
5. dutchcodingcompany/cursor-pagination

AbandonedArchivedLibrary[API Development](/categories/api)

dutchcodingcompany/cursor-pagination
====================================

Cursor pagination for Laravel Lighthouse GraphQL API

0.1.1(6y ago)1228MITPHPPHP &gt;=7.2

Since Jun 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/DutchCodingCompany/cursor-pagination)[ Packagist](https://packagist.org/packages/dutchcodingcompany/cursor-pagination)[ Docs](https://github.com/dutchcodingcompany/cursor-pagination)[ RSS](/packages/dutchcodingcompany-cursor-pagination/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7d3a07f6abe66bf60009f6bbcf663d1ad2ce9e58802cfe4fac6f9722e8794f42/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6475746368636f64696e67636f6d70616e792f637572736f722d706167696e6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dutchcodingcompany/cursor-pagination)[![Build Status](https://camo.githubusercontent.com/901ccf0fea457770a9258bd202280d8cb1ae0d82be8918d4641b046c14d6e066/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6475746368636f64696e67636f6d70616e792f637572736f722d706167696e6174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/dutchcodingcompany/cursor-pagination)[![Quality Score](https://camo.githubusercontent.com/2bf279a839456a6b7fdd46f7a1195245ffeef7a5b38aa13ba8a84eeceb0f0afd/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6475746368636f64696e67636f6d70616e792f637572736f722d706167696e6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/dutchcodingcompany/cursor-pagination)[![Total Downloads](https://camo.githubusercontent.com/95920319a7bdfd7b70ffad2009c9fc086741d62dd3f403501a24da87dce93bbe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6475746368636f64696e67636f6d70616e792f637572736f722d706167696e6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dutchcodingcompany/cursor-pagination)

This Laravel package brings cursor based pagination support to Laravel and [Lighthouse](https://github.com/nuwave/lighthouse) in particular.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require dutchcodingcompany/cursor-pagination
```

Usage
-----

[](#usage)

### GraphQL

[](#graphql)

Add `'DutchCodingCompany\\CursorPagination\\Directives'` to config/lighthouse.php under

```
namespaces => [
   'directives' => ['DutchCodingCompany\\CursorPagination\\Directives']
]

```

### Builder

[](#builder)

Call `cursorPaginate()` on an Eloquent or Query Builder

```
User::orderBy('updated_at', 'asc')->cursorPaginate($limit);
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Marco Boers](https://github.com/dutchcodingcompany)
- [Dutch Coding Company](https://github.com/DutchCodingCompany)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

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 ~0 days

Total

2

Last Release

2197d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/253e8fe87efe50428e19537de8f0753d21cdb8dae3a271ad27ef805b9ab0d292?d=identicon)[marcoboers](/maintainers/marcoboers)

![](https://www.gravatar.com/avatar/a17eeb9b88a4cbaf228dcf25c7f27eda952484372dc960b64272f37b2865a59f?d=identicon)[dutchcodingcompany](/maintainers/dutchcodingcompany)

---

Top Contributors

[![marcoboers](https://avatars.githubusercontent.com/u/3316595?v=4)](https://github.com/marcoboers "marcoboers (3 commits)")

---

Tags

laravelgraphqlcursor-pagination

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dutchcodingcompany-cursor-pagination/health.svg)

```
[![Health](https://phpackages.com/badges/dutchcodingcompany-cursor-pagination/health.svg)](https://phpackages.com/packages/dutchcodingcompany-cursor-pagination)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M188](/packages/laravel-ai)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M1](/packages/glushkovds-phpclickhouse-laravel)[api-platform/laravel

API Platform support for Laravel

58170.4k13](/packages/api-platform-laravel)[essa/api-tool-kit

set of tools to build an api with laravel

53389.9k](/packages/essa-api-tool-kit)

PHPackages © 2026

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