PHPackages                             mralgorithm/laravel-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. mralgorithm/laravel-pagination

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

mralgorithm/laravel-pagination
==============================

pagination for laravel

12PHP

Since Oct 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mralgorithm2000/laravel-pagination)[ Packagist](https://packagist.org/packages/mralgorithm/laravel-pagination)[ RSS](/packages/mralgorithm-laravel-pagination/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-pagination
==================

[](#laravel-pagination)

paginaion for lists

paginate your content and navigate to each page by using this simple package

images
------

[](#images)

### - darkmode

[](#--darkmode)

[![darkmode](https://camo.githubusercontent.com/d0d27b014bbf7050351d11b95369019239ddb1e359d9f6435d87b9df324eb9d6/68747470733a2f2f69696c692e696f2f5158597364472e706e67)](https://camo.githubusercontent.com/d0d27b014bbf7050351d11b95369019239ddb1e359d9f6435d87b9df324eb9d6/68747470733a2f2f69696c692e696f2f5158597364472e706e67)

### - lightmode

[](#--lightmode)

[![lightmode](https://camo.githubusercontent.com/4f05b4a6ca5036e7dec43021d66df8b4a271d5ce5e546e55eea104b534ff7b24/68747470733a2f2f69696c692e696f2f5158613931652e706e67)](https://camo.githubusercontent.com/4f05b4a6ca5036e7dec43021d66df8b4a271d5ce5e546e55eea104b534ff7b24/68747470733a2f2f69696c692e696f2f5158613931652e706e67)

installation
============

[](#installation)

to install this package run:

`composer require mralgorithm/laravel-pagination`

then run this command to publish required files:

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

```

for the last step, add this css to your template file

```

```

usage
=====

[](#usage)

in the controllers:
-------------------

[](#in-the-controllers)

to get offset you can use this function

```
\Mralgorithm\LaravelPagination\Helper::offset($pid,$limit)

```

### example

[](#example)

```
public function show($pid = 1)
    {
        $limit = 15;
        $Content = Posts::limit($limit)->offset(\Mralgorithm\LaravelPagination\Helper::offset($pid,$limit))->get();
        return view('test',[
            'Content' => $Content,
            'count' => Posts::count(),
            'pid' => $pid
        ]);
    }

```

in views
--------

[](#in-views)

to paginate your list add this code to your views

```
$laravelPagination->pagination($count,$limit,$pid,url('/%s'))

```

### example

[](#example-1)

1.

```
{{ $laravelPagination->pagination(@$count,15,$pid,url('/%s')) }}

```

2.

```

            ...

            @foreach ($Content as $C)
                ...
            @endforeach

    {{ $laravelPagination->pagination(@$count,15,$pid,url('/%s')) }}

```

Configuration
=============

[](#configuration)

to config this package edit `/config/laravelPagination.php`

parameters
----------

[](#parameters)

### mode:

[](#mode)

Dark/Light Mode

set `light` to get lightmode set `dark` to get darkmode

### next

[](#next)

use this parameters to set next button text/icon

1. for font-awesome

```

```

2. for google font icon:

```
arrow_right

```

3. for simple text: `next`
4. for multilang support

```
__('yourTranslationFile.next')

```

replace parameters according to your language files

### previous

[](#previous)

use this parameters to set previous button text/icon

1. for font-awesome

```

```

2. for google font icon:

```
arrow_left

```

3. for simple text: `next`
4. for multilang support

```
__('yourTranslationFile.previous')

```

replace parameters according to your language files

Styling
=======

[](#styling)

to change styles edit `public/laravel-pagination/laravelPaginationStyle.css`

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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.

### Community

Maintainers

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

---

Top Contributors

[![mmohammadrezaa](https://avatars.githubusercontent.com/u/29540296?v=4)](https://github.com/mmohammadrezaa "mmohammadrezaa (4 commits)")[![mralgorithm2000](https://avatars.githubusercontent.com/u/114799598?v=4)](https://github.com/mralgorithm2000 "mralgorithm2000 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[wwwision/dcb-eventstore

Implementation of the Dynamic Consistency Boundary pattern described by Sara Pellegrini

2131.5k10](/packages/wwwision-dcb-eventstore)

PHPackages © 2026

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