# KnpLabs/KnpPaginatorBundle

SEO friendly Symfony paginator to sort and paginate

Repository: https://github.com/KnpLabs/KnpPaginatorBundle
Canonical: https://ross.abutalabs.com/products/knppaginatorbundle
Homepage: http://knplabs.com/en/blog/knp-paginator-reborn
Language: PHP
License: MIT
License Family: permissive
Topics: twig, php, paginator, symfony, symfony-bundle, seo
Last push: 2026-08-24T07:25:18+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 47, longevity 100
- inputs: {"age_days": 5853, "days_push": 9, "days_rel": 277, "gap_med": 36.0, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1823, forks 332 (observed 2026-08-28T04:05:41.130510+00:00)

## What it is
KnpPaginatorBundle is a Symfony bundle providing SEO-friendly pagination and sorting for arbitrary data, including Doctrine ORM/ODM queries and plain arrays. It is built on the Knp Pager component and uses an event-driven architecture with customizable Twig templates.

## Use cases
- paginate doctrine query results in a symfony app
- add sortable paginated lists to symfony controllers
- seo friendly pagination links for twig templates
- paginate arrays or custom data sources in symfony
- customize pagination view templates and query parameter names

## When to choose
- you use Symfony with Twig and need battle-tested pagination
- you want automatic sorting and filtering driven by request parameters
- you need extensible pagination via event subscribers

## When to avoid
- you are not using the Symfony framework
- you need pagination for a JavaScript SPA without server-side rendering
- you use legacy Doctrine ORM 2.0 or ODM MongoDB, which require older bundle versions

## Facets
- artifact type: plugin
- maturity: stable
- function: web-framework, templating, routing
- domain: web-development, backend, developer-tools
- platform: php, self-hosted
- tags: symfony-bundle, pagination, sorting, seo-friendly, twig, doctrine, web-server

## Member repositories
- KnpLabs/KnpPaginatorBundle (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:41.130510+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:19:44.517163+00:00, confidence not recorded.
  - readme: https://github.com/KnpLabs/KnpPaginatorBundle (fetched 2026-08-28T04:05:41.130510+00:00, sha 3c010f1d9616)
  - homepage: http://knplabs.com/en/blog/knp-paginator-reborn (fetched 2026-08-29T10:58:46.005134+00:00, sha 67e1e23a84c1)
  - site_page: https://knplabs.com/en/about-knp (fetched 2026-08-29T10:58:46.014871+00:00, sha 8d6dbf9ac768)
- Data as of 2026-08-30T08:39:29.467469+00:00.
