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

AbandonedArchivedLibrary

ivanhalen/pagination
====================

An alternative Laravel pagination

0.1alpha(11y ago)210.9k2[3 issues](https://github.com/ivanhalen/pagination/issues)MITPHPPHP &gt;=5.4.0

Since Oct 11Pushed 11y ago2 watchersCompare

[ Source](https://github.com/ivanhalen/pagination)[ Packagist](https://packagist.org/packages/ivanhalen/pagination)[ Docs](http://github.com/ivanhalen/pagination)[ RSS](/packages/ivanhalen-pagination/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

\#Laravel 4 Alternative Pagination

An alternative pagination for Laravel 4 built on top of existing Bootstrap one. The idea came from "Pages List Limited" server behavior, a subset of [Tom Muck's Recordset Navigation Suite](http://www.tom-muck.com/extensions/help/RecordsetNavigationSuite/) for Adobe Dreamweaver that I used a lot in my old procedural days :-)

More, an infinite scroll based on [jQuery Waypoints](http://imakewebthings.com/jquery-waypoints/) is implemented as well.

This is my first Laravel package, and the first time I use GitHub as publisher: you know, there's always a "first time" for everything! :-)

\##Installation

Add `ivanhalen/pagination` as a requirement to `composer.json`:

```
{
    ...
    "require": {
        ...
        "ivanhalen/pagination": "dev-master"
        ...
    },
}
```

Update composer:

```
$ php composer.phar update

```

Add the provider to your `app/config/app.php`:

```
'providers' => array(

    ...
    'Ivanhalen\Pagination\PaginationServiceProvider',

),
```

\##Usage

This package provides two additional alternative paginations, named `frame` and `scroll`, to the Bootstrap ones implemented in Laravel.

\###Frame

This is a sort of 'framed' navigation similar to the one found in some popular Bulletin Boards: where possible, the active page is surrounded by a fixed number of links both on the left and on the right side, like this:

... | [4](#) | [5](#) | **6** | [7](#) | [8](#) | ...

Change the default pagination style found in `app/config/view.php` with this one:

```
'pagination' => 'pagination::frame',
```

That's all! :-)

\###Scroll

This is an infinite scroll pagination based on jQuery Waypoints, very easy to implement: to get more informations and options, visit the [jQuery Waypoints Infinite Scroll](http://imakewebthings.com/jquery-waypoints/shortcuts/infinite-scroll/) page.

First include the required JavaScript files in your view:

```

$(function() {
    $('.infinite-container').waypoint('infinite');
});

```

Then apply the CSS classes `.infinite-container` and `.infinite-item` respectively to container and items, like this:

```

	...
    ...

```

At last change the default pagination style found in `app/config/view.php` with this one:

```
'pagination' => 'pagination::scroll',
```

\##Configuration

Of course you can customize the pagination: here are the options

- `show_first_last`: displays the 'First' and 'Last' links. Default: `true`
- `frame`:
    - `links`: set the number of links to show in the pagination. Default: `5`
    - `prev_link_text`: set the previous link text. Default: `&lsaquo;`
    - `next_link_text`: set the next link text. Default: `&rsaquo;`
    - `first_link_text`: set the first link text. Default: `&laquo;`
    - `last_link_text`: set the last link text. Default: `&raquo;`
- `scroll`:
    - `infinite_more_link_class`: set the CSS class for the link that triggers infinite scroll. Default: `infinite-more-link`

That's all: have fun!

Created by Ivan Sammartino. Copyright © 2014. Licensed under the [MIT license](LICENSE.md).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

4237d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelpagination

### Embed Badge

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

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

PHPackages © 2026

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