PHPackages                             league/fractal-paginator-pagerfanta - 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. league/fractal-paginator-pagerfanta

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

league/fractal-paginator-pagerfanta
===================================

Fractal paginator adapter for PagerFanta

192[1 PRs](https://github.com/thephpleague/fractal-paginator-pagerfanta/pulls)PHPCI failing

Since May 12Pushed 5y ago3 watchersCompare

[ Source](https://github.com/thephpleague/fractal-paginator-pagerfanta)[ Packagist](https://packagist.org/packages/league/fractal-paginator-pagerfanta)[ RSS](/packages/league-fractal-paginator-pagerfanta/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Fractal PagerFanta Pagination Adapter
=====================================

[](#fractal-pagerfanta-pagination-adapter)

[![Latest Version](https://camo.githubusercontent.com/20a72604b1293d42b1963a2e525391267728c4fa561366ab5234547436b50521/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7468657068706c65616775652f6672616374616c2d706167696e61746f722d706167657266616e74612e7376673f7374796c653d666c61742d737175617265)](https://github.com/thephpleague/fractal-paginator-pagerfanta/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/a47c01f8eda6e2a1cd57b7fb248bc5e3ae14b7e6273ac16c27076268112d0184/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468657068706c65616775652f6672616374616c2d706167696e61746f722d706167657266616e74612f6d61737465722e7376673f7374796c653d666c61742d737175617265266c6162656c3d7465737473)](https://travis-ci.org/thephpleague/fractal-paginator-pagerfanta)[![Build Status](https://camo.githubusercontent.com/47c910014448436d83a67c0e5de5da2c3b6237fac7d1a37760da50c1a92c3bdd/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f6275696c642f67682f7468657068706c65616775652f6672616374616c2d706167696e61746f722d706167657266616e74612f6d61737465722e7376673f7374796c653d666c61742d737175617265266c6162656c3d636f64652b7374796c65)](https://circleci.com/gh/thephpleague/fractal-paginator-pagerfanta)[![Coverage Status](https://camo.githubusercontent.com/4525534cbe2cbee8c2148e9f9f8b3a96036c1f82e4bfd52b167a80efe3d9d975/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7468657068706c65616775652f6672616374616c2d706167696e61746f722d706167657266616e74612f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thephpleague/fractal-paginator-pagerfanta/code-structure)[![Quality Score](https://camo.githubusercontent.com/6a9b4ebf600594cdadd7279d62bb21deb6f3e68f8fc846b76579454d2e362990/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7468657068706c65616775652f6672616374616c2d706167696e61746f722d706167657266616e74612f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thephpleague/fractal-paginator-pagerfanta)[![Total Downloads](https://camo.githubusercontent.com/61b3420219694c7281a02cb7fda7c9548462b39ba7ad6279d1d67056d3e7dec2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c65616775652f6672616374616c2d706167696e61746f722d706167657266616e74612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/league/fractal-paginator-pagerfanta)

Fractal provides a presentation and transformation layer for complex data output, the like found in RESTful APIs, and works really well with JSON. Think of this as a view layer for your JSON/YAML/etc.

When building an API it is common for people to just grab stuff from the database and pass it to `json_encode()`. This might be passable for "trivial" APIs but if they are in use by the public, or used by mobile applications then this will quickly lead to inconsistent output.

Install
-------

[](#install)

Via Composer

```
$ composer require league/fractal-paginator-pagerfanta
```

Requirements
------------

[](#requirements)

The following versions of PHP are supported by this version.

- PHP 7.2
- PHP 7.3
- PHP 7.4
- HHVM

Documentation
-------------

[](#documentation)

Fractal has [full documentation](http://fractal.thephpleague.com), powered by [Jekyll](http://jekyllrb.com/).

Contribute to this documentation in the [gh-pages branch](https://github.com/thephpleague/fractal/tree/gh-pages/).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/thephpleague/fractal/blob/master/LICENSE) for more information.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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/842d2fe13512e82f0f9b6f0d79dba8eba1595a3cefd31dd51723960436133307?d=identicon)[KorvinSzanto](/maintainers/KorvinSzanto)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/league-fractal-paginator-pagerfanta/health.svg)

```
[![Health](https://phpackages.com/badges/league-fractal-paginator-pagerfanta/health.svg)](https://phpackages.com/packages/league-fractal-paginator-pagerfanta)
```

PHPackages © 2026

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