New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

noin/fast-paginate

Fast paginate for Laravel
1,014

Larablocks Analysis

noin/fast-paginate works with Laravel 10 to 13 (latest release v1.0.0, Jun 24, 2026).

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Jun 24, 2026)
  • 230 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

State

Maintained
  • Last stable release: Jun 24, 2026.
  • 1 release in the last 12 months.
  • First released: Jun 24, 2026.
  • Monthly downloads: 230.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require noin/fast-paginate
Latest Version:v1.0.0
PHP:>=8.2
Laravel:10 – 13
License:MIT
Last Updated:Jun 24, 2026
Links: GitHub  ·  Packagist
Maintainer: Tinno

Fast Paginate for Laravel

Latest Version on Packagist Total Downloads License

About

This is a fast limit/offset pagination macro for Laravel. It can be used in place of the standard paginate methods.

This package uses a SQL method similar to a "deferred join" to achieve this speedup. A deferred join is a technique that defers access to requested columns until after the offset and limit have been applied.

In our case we don't actually do a join, but rather a where in with a subquery. Using this technique we create a subquery that can be optimized with specific indexes for maximum speed and then use those results to fetch the full rows.

The SQL looks something like this:

select * from contacts              -- The full data that you want to show your users.
    where contacts.id in (          -- The "deferred join" or subquery, in our case.
        select id from contacts     -- The pagination, accessing as little data as possible - ID only.
        limit 15 offset 150000      
    )

You might get an error trying to run the query above! Something like This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery. In this package, we run them as two separate queries to get around that!

The benefits can vary based on your dataset, but this method allows the database to examine as little data as possible to satisfy the user's intent.

It's unlikely that this method will ever perform worse than traditional offset / limit, although it is possible, so be sure to test on your data!

If you want to read 3,000 words on the theory of this package, you can head over to aaronfrancis.com/2022/efficient-pagination-using-deferred-joins.

Installation

This package supports Laravel 10, 11, and 12, and requires PHP 8.2 or higher.

To install, require the package via composer:

composer require aaronfrancis/fast-paginate

There is nothing further you need to do. The service provider will be loaded automatically by Laravel.

Usage

Anywhere you would use Model::query()->paginate(), you can use Model::query()->fastPaginate()! That's it! The method signature is the same.

Relationships are supported as well:

User::first()->posts()->fastPaginate();

A Favor

If this helps you, please tweet at me with before and after times! Or you can open a PR! I'd love to know :D

Some community results so far:

License

The MIT License (MIT).

Support

This is free! If you want to support me:

Credits

Fast Paginate was developed by Aaron Francis. If you like it, please let me know!

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released PHP Laravel License
v1.0.0 >=8.2 >=10.0 MIT