PHPackages                             scharrier/li3\_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. scharrier/li3\_pagination

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

scharrier/li3\_pagination
=========================

Lithium pagination that doesn't suck

3191[1 issues](https://github.com/scharrier/li3_pagination/issues)PHP

Since Dec 17Pushed 11y ago1 watchersCompare

[ Source](https://github.com/scharrier/li3_pagination)[ Packagist](https://packagist.org/packages/scharrier/li3_pagination)[ RSS](/packages/scharrier-li3-pagination/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

li3\_pagination
===============

[](#li3_pagination)

> I'm sorry, this li3 package isn't still maintained. If someone wants to take the lead, just ping me.

Lithium doesn't suck. This is a fact. But hey, what's about pagination ? Not natively included in the framework, all the existing plugins are just wrong. Pagination is a really common thing : we, developers, have to paginate everything, everytime.

It has to be simple. And you know what ? With li3\_pagination, it is.

Install
-------

[](#install)

The easiest way to install li3\_pagination is to use composer, adding this lines in your composer.json file:

```
{
	"require" : {
		"scharrier/li3_pagination" : "dev-master"
	}
}
```

Tell composer to install it :

```
composer install

```

And finally, load the library:

```
// config/bootstrap/libraries.php
Libraries::add('li3_pagination') ;
```

Using li3\_pagination
---------------------

[](#using-li3_pagination)

In your model, just use the good trait :

```
class MyModel extends \lithium\data\Model {

	use \li3_pagination\extensions\data\Paginable ;

}
```

The trait add a method paginate() to your model. Now, call it directly from your controller instead of a standard find() :

```
public function index() {
	$records = Records::paginate($this->request, [
		'limit' => 20,
		'order' => ['field' => 'asc'],
		'conditions' => [
			'your' => ['custom' => 'conditions']
		]
	]);
}
```

And finally, just call paginate() :

```
$this->pagination->paginate() ;
```

Yep. That's all.

Help and support
----------------

[](#help-and-support)

Fork it, play with it, commit if needed and pull request ! Ask your questions or tell me more about problems you have in the repo issues.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[butschster/meta-tags

The most powerful and extendable tools for managing SEO Meta Tags in your Laravel project

628730.7k2](/packages/butschster-meta-tags)

PHPackages © 2026

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