PHPackages                             microparts/paginateformatter-php - 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. microparts/paginateformatter-php

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

microparts/paginateformatter-php
================================

Pagination format for spacetab.io standards.

1.1.1(6y ago)1298GPL-3.0-onlyPHP

Since Oct 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/microparts/paginateformatter-php)[ Packagist](https://packagist.org/packages/microparts/paginateformatter-php)[ RSS](/packages/microparts-paginateformatter-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (6)Versions (10)Used By (0)

Paginate Formatter For PHP
==========================

[](#paginate-formatter-for-php)

[![CircleCI](https://camo.githubusercontent.com/ca80a305e7c7168da4c957ff9e3acab154ab08cb6ac1de275f7b0cad1663f48d/68747470733a2f2f636972636c6563692e636f6d2f67682f6d6963726f70617274732f706167696e617465666f726d61747465722d7068702f747265652f6d61737465722e7376673f7374796c653d737667)](https://circleci.com/gh/microparts/paginateformatter-php/tree/master)[![codecov](https://camo.githubusercontent.com/59302a3e48bfafd6a7ec3991ef898050be45d56946f8b410b92d46e77bf62c59/68747470733a2f2f636f6465636f762e696f2f67682f6d6963726f70617274732f706167696e617465666f726d61747465722d7068702f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/microparts/paginateformatter-php)

**THIS PACKAGE PERMANENTLY MOVED TO **

---

This a simple formatter based on [Pagerfanta](https://github.com/whiteoctober/Pagerfanta) library. Specially created for follow up corporate standards of pagination format.

Installation
------------

[](#installation)

```
composer install microparts/paginateformatter-php
```

Usage
-----

[](#usage)

Basic:

```
use Pagerfanta\Adapter\ArrayAdapter;
use Pagerfanta\Pagerfanta;
use Microparts\PaginateFormatter\PaginateFormatter;

$adapter = new ArrayAdapter($array);
$pagerfanta = new Pagerfanta($adapter);
$paginate = new PaginateFormatter($pagerfanta);

$paginate->format(); // returns formatted output.
```

Replace current page results from Pagerfanta:

```
use Pagerfanta\Adapter\ArrayAdapter;
use Pagerfanta\Pagerfanta;
use Microparts\PaginateFormatter\PaginateFormatter;

$adapter = new ArrayAdapter($array);
$pagerfanta = new Pagerfanta($adapter);
$paginate = new PaginateFormatter($pagerfanta);

$paginate->setItems($transformedModel)->format();
```

Depends
-------

[](#depends)

- &gt;= PHP 7.1
- Composer for install package

Additional adapters
-------------------

[](#additional-adapters)

This package also add a new following adapters:

- `Microparts\PaginateFormatter\Adapters\BasePdoAdapter.php`
- `Microparts\PaginateFormatter\Adapters\FluentPdoAdapter.php`
- `Microparts\PaginateFormatter\Adapters\PaginatePdoAdapter.php`

Output format
-------------

[](#output-format)

```
{
  "data": [{"foo": "bar"}],
  "meta": {
    "pagination": {
      "total": 6,
      "per_page": 1,
      "current_page": 1,
      "total_pages": 6,
      "prev_page": null,
      "next_page": 2
    }
  }
}
```

License
-------

[](#license)

GNU GPL v3

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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

Recently: every ~108 days

Total

9

Last Release

2307d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35d8eff4a3e66b58f3e2af56fe948035469de1e19ac29c532d65c681955bbd18?d=identicon)[Roquie](/maintainers/Roquie)

---

Top Contributors

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

---

Tags

adapterformatterpaginatephpphp7

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/microparts-paginateformatter-php/health.svg)

```
[![Health](https://phpackages.com/badges/microparts-paginateformatter-php/health.svg)](https://phpackages.com/packages/microparts-paginateformatter-php)
```

###  Alternatives

[netgen/tagsbundle

Netgen Tags Bundle is an Ibexa DXP bundle for taxonomy management and easier classification of content, providing more functionality for tagging content than ibexa\_keyword field type included in Ibexa core.

49456.8k21](/packages/netgen-tagsbundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[franmomu/silex-pagerfanta-provider

Silex ServiceProvider for Pagerfanta Library

1312.1k](/packages/franmomu-silex-pagerfanta-provider)[fsc/batch

Library with classes to help you do batch.

185.3k](/packages/fsc-batch)

PHPackages © 2026

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