PHPackages                             heseya/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. heseya/pagination

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

heseya/pagination
=================

Heseya Pagination Middleware for Laravel

1.0.4(2y ago)04.3kMITPHPPHP ^8.0

Since Jan 17Pushed 2y ago3 watchersCompare

[ Source](https://github.com/heseya/laravel-pagination)[ Packagist](https://packagist.org/packages/heseya/pagination)[ RSS](/packages/heseya-pagination/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Heseya Pagination Middleware
============================

[](#heseya-pagination-middleware)

Middleware that automatically sets pagination for all endpoints.

How it's work?
--------------

[](#how-its-work)

You add middleware in `App\Http\Kernel`

```
protected $middleware = [
    ...
    Heseya\Pagination\Http\Middleware\Pagination::class,
];
```

or to specific route in `router`

```
Route::get(...)->middleware(Pagination::class);
```

Now when you send parameter `limit`

```
/products?limit=50

```

you can use `pagination.per_page` config key to set pagination limit

```
public function index()
{
    return Product::paginate(Config::get('pagination.per_page'));
}
```

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

[](#installation)

```
composer require heseya/laravel-pagination

```

```
php artisan vendor:publish --tag=pagination

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

5

Last Release

837d ago

### Community

Maintainers

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

### Embed Badge

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

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

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

592.7k2](/packages/crumbls-layup)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1320.9k4](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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