PHPackages                             m0r0z0vd/sps - 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. m0r0z0vd/sps

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

m0r0z0vd/sps
============

Simple pagination service

v1.0.4(5y ago)08MITPHPCI failing

Since Jan 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/m0r0z0vd/sps)[ Packagist](https://packagist.org/packages/m0r0z0vd/sps)[ RSS](/packages/m0r0z0vd-sps/feed)WikiDiscussions master Synced 4w ago

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

Simple pagination service
=========================

[](#simple-pagination-service)

This service helps to implement a custom pagination.

How to install
--------------

[](#how-to-install)

- `composer require m0r0z0vd/sps`

### Example usage

[](#example-usage)

```
$data = new PaginationData();
$data->lastPage = 5;
$data->records = [
    [
        'email' => 'email@email.com'
    ],
    [
        'email' => 'some.email@email.com'
    ]
];

$sps = new SimplePaginationService();
$sps
    ->setRecordsPerPage(1)
    ->setVisiblePagesRadius(1)
    ->generatePaginationBlock($data)
;

var_dump($data);

```

You will see:

```
class MDServices\Structures\PaginationData#1 (5) {
  public $firstPage =>
  int(1)
  public $currentPage =>
  int(1)
  public $lastPage =>
  int(5)
  public $records =>
  array(2) {
    [0] =>
    array(1) {
      'email' =>
      string(15) "email@email.com"
    }
    [1] =>
    array(1) {
      'email' =>
      string(20) "some.email@email.com"
    }
  }
  public $paginationBlock =>
  array(6) {
    [0] =>
    class MDServices\Structures\PageItem#3 (3) {
      public $toPage =>
      int(0)
      public $disabled =>
      bool(true)
      public $text =>
      string(2) ">"
    }
  }
}

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Recently: every ~31 days

Total

6

Last Release

2178d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/60073606?v=4)[Dmytro Morozov](/maintainers/m0r0z0vd)[@m0r0z0vd](https://github.com/m0r0z0vd)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/m0r0z0vd-sps/health.svg)

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

###  Alternatives

[ramsey/devtools

A Composer plugin to aid PHP library and application development.

7134.7k26](/packages/ramsey-devtools)[jimbojsb/workman

PHP process forking &amp; daemonizing library

608.8k](/packages/jimbojsb-workman)

PHPackages © 2026

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