PHPackages                             bitsnbolts/laravel-cursor-paginate - 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. bitsnbolts/laravel-cursor-paginate

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

bitsnbolts/laravel-cursor-paginate
==================================

Cursor based pagination for Laravel

6.0.0(9mo ago)06.7k2MITPHPPHP ^8.1 || ^8.2 || ^8.3 || ^8.4CI failing

Since Mar 15Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/bitsnbolts/laravel-cursor-paginate)[ Packagist](https://packagist.org/packages/bitsnbolts/laravel-cursor-paginate)[ Docs](https://github.com/bitsnbolts/laravel-cursor-paginate)[ GitHub Sponsors](https://github.com/bitsnbolts)[ RSS](/packages/bitsnbolts-laravel-cursor-paginate/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (6)Versions (14)Used By (0)

Cursor based pagination for Laravel
===================================

[](#cursor-based-pagination-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7af94ac78fc5c90d0b0bc3572d8144a9253c4ce37e285726289edc611e8eabae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626974736e626f6c74732f6c61726176656c2d637572736f722d706167696e6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bitsnbolts/laravel-cursor-paginate)[![GitHub Tests Action Status](https://camo.githubusercontent.com/9f67caf72476225a3ed26c45560b6dc9f80bdd88c6c63d0a4f818a6cc7b3c8cd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f626974736e626f6c74732f6c61726176656c2d637572736f722d706167696e6174652f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/bitsnbolts/laravel-cursor-paginate/actions?query=workflow%3ATests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/70b74ccaaca28d6e33394e49c01c46680de5ccf3c18f450cf22a6686adeb1e1c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f626974736e626f6c74732f6c61726176656c2d637572736f722d706167696e6174652f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/bitsnbolts/laravel-cursor-paginate/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/79b0faac4c267fd05b252c3a3ab3ff5afdea3953485bb98e61d84bf7ef74f121/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626974736e626f6c74732f6c61726176656c2d637572736f722d706167696e6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bitsnbolts/laravel-cursor-paginate)

[![](https://camo.githubusercontent.com/2d9ae136b9da6e5d48f41967a4d959a0fee0b70fa05efd5ce77d95c7d0f62c53/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230437572736f72253230506167696e6174652e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d626974736e626f6c74732532466c61726176656c2d637572736f722d706167696e617465267061747465726e3d616e63686f727341776179267374796c653d7374796c655f31266465736372697074696f6e3d437572736f722b62617365642b706167696e6174696f6e2b666f722b4c61726176656c266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)](https://camo.githubusercontent.com/2d9ae136b9da6e5d48f41967a4d959a0fee0b70fa05efd5ce77d95c7d0f62c53/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230437572736f72253230506167696e6174652e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d626974736e626f6c74732532466c61726176656c2d637572736f722d706167696e617465267061747465726e3d616e63686f727341776179267374796c653d7374796c655f31266465736372697074696f6e3d437572736f722b62617365642b706167696e6174696f6e2b666f722b4c61726176656c266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)

This package adds Cursor Based Pagination to Laravel.

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

[](#installation)

You can install the package via composer:

```
composer require bitsnbolts/laravel-cursor-paginate
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Bitsnbolts\CursorPaginate\CursorPaginateServiceProvider" --tag="laravel-cursor-paginate-config"
```

This is the contents of the published config file:

```
return [
];
```

Usage
-----

[](#usage)

```
$paginator = App\Models\ExampleModel::cursorPaginateWithTotal(10, ['created_at' => 'desc', 'id' => 'desc']);
$items = $paginator->items();
$nextUrl = $paginator->nextCursorUrl();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Thijs van den Anker](https://github.com/ThijsvandenAnker)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance56

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity78

Established project with proven stability

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

Recently: every ~383 days

Total

13

Last Release

296d ago

Major Versions

1.0.1 → 2.0.02021-06-14

2.0.2 → 3.0.02022-08-17

3.0.0 → 4.0.02023-06-16

4.0.0 → 5.0.02025-01-31

5.0.0 → 6.0.02025-09-11

PHP version history (4 changes)0.1.0PHP ^7.4

2.0.2PHP ^7.4|^8.0

4.0.0PHP ^8.1

5.0.0PHP ^8.1 || ^8.2 || ^8.3 || ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/4395242ced08362b402e6117b60fe23df915df83e48b9b6bb8940b31ea55a660?d=identicon)[thijsvdanker](/maintainers/thijsvdanker)

---

Top Contributors

[![thijsvdanker](https://avatars.githubusercontent.com/u/429548?v=4)](https://github.com/thijsvdanker "thijsvdanker (32 commits)")

---

Tags

laravel-cursor-paginatebitsnbolts

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bitsnbolts-laravel-cursor-paginate/health.svg)

```
[![Health](https://phpackages.com/badges/bitsnbolts-laravel-cursor-paginate/health.svg)](https://phpackages.com/packages/bitsnbolts-laravel-cursor-paginate)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[stephenjude/laravel-wallet

A simple wallet implementation for Laravel

26611.9k](/packages/stephenjude-laravel-wallet)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k3](/packages/tapp-filament-form-builder)

PHPackages © 2026

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