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

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

viloveul/pagination
===================

Wrapper for build data pagination

v1.0.2(6y ago)1141MITPHPPHP ~7.0

Since Jan 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/viloveul/pagination)[ Packagist](https://packagist.org/packages/viloveul/pagination)[ Docs](http://www.viloveul.com)[ RSS](/packages/viloveul-pagination/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (5)Used By (0)

Installation
============

[](#installation)

make sure your php version &gt; 7.0

```
composer require viloveul/pagination
```

HOW
---

[](#how)

```
require __DIR__ . '/vendor/autoload.php';

$parameter = new Viloveul\Pagination\Parameter('search', $_GET);

// $paremeter->setConditions([]);
// $parameter->setCurrentPage(1);
// $parameter->setOrderBy('id');
// $parameter->setSortOrder('asc');
// $parameter->setPageSize(20);

$pagination = new Viloveul\Pagination\Builder($parameter);
$pagination->with(function ($conditions, $size, $page, $order, $sort) use ($parameter) {
    $model = new YourUserModelSample();
    foreach ($conditions as $key => $value) {
        $model->where($key, 'LIKE', "%{$value}%");
    }
    // set total results
    $total = $model->count();
    // set result data array
    $result = $model->orderBy($order, $sort)->skip(($page * $size) - $size)->take($size)->get();

    return new Viloveul\Pagination\ResultSet($total, $result->toArray());
});

var_dump($pagination->getMeta());
var_dump($pagination->getData());
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~47 days

Total

4

Last Release

2534d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/609a03f1a38d80aa5cf333dd556cb748371dbcbc880f3c580ecea72ff0fb228b?d=identicon)[zafex](/maintainers/zafex)

---

Top Contributors

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

---

Tags

librarypaginationcomponentzafexviloveulfajrulaz

### Embed Badge

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

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

PHPackages © 2026

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