PHPackages                             michaeljennings/eloquent-paginator - 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. michaeljennings/eloquent-paginator

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

michaeljennings/eloquent-paginator
==================================

Adds a new paginate method to laravel eloquent that retains select statements

v1.0(7y ago)1165MITPHP

Since Jul 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/michaeljennings/eloquent-paginator)[ Packagist](https://packagist.org/packages/michaeljennings/eloquent-paginator)[ RSS](/packages/michaeljennings-eloquent-paginator/feed)WikiDiscussions master Synced yesterday

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

Eloquent Paginator
==================

[](#eloquent-paginator)

Eloquent is awesome, but occasionally I hit into an issue with paginating with having clauses.

This package adds a new method to the eloquent builder that retains the select statements while paginating.

[Example of the bug](https://github.com/laravel/framework/pull/5515)

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

[](#installation)

Install through composer using `composer require michaeljennings/eloquent-paginator` or add the package to the require section of your `composer.json` file.

```
"require": {
  ...
  "michaeljennings/eloquent-paginator": "^1.0"
}

```

Then run `composer update` to install the package.

Usage
-----

[](#usage)

Instead of using `paginate` use `paginateWithSelects` instead.

```
$query->paginate(15);
$query->paginateWithSelects(15);
```

As the we retain the select queries from the query you cannot specify the columns like you can with the standard `paginate` method.

However you can still specify the paginator name and the currency page if needed.

```
$query->paginateWithSelects(15, 'foo', 2);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Unknown

Total

1

Last Release

2861d ago

### Community

Maintainers

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

---

Top Contributors

[![michaeljennings](https://avatars.githubusercontent.com/u/5189701?v=4)](https://github.com/michaeljennings "michaeljennings (5 commits)")

### Embed Badge

![Health badge](/badges/michaeljennings-eloquent-paginator/health.svg)

```
[![Health](https://phpackages.com/badges/michaeljennings-eloquent-paginator/health.svg)](https://phpackages.com/packages/michaeljennings-eloquent-paginator)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[illuminatech/balance

Provides support for Balance accounting system based on debit and credit principle

16137.4k](/packages/illuminatech-balance)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[glhd/special

1929.4k](/packages/glhd-special)

PHPackages © 2026

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