Download the PHP package symfony/ux-pagination without Composer
On this page you can find all versions of the php package symfony/ux-pagination. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download symfony/ux-pagination
More information about symfony/ux-pagination
Files in symfony/ux-pagination
Package ux-pagination
Short Description Cursor and numbered pagination for Symfony applications
License MIT
Homepage https://symfony.com
Informations about the package ux-pagination
Symfony UX Pagination
EXPERIMENTAL This bundle is currently experimental and is likely to change, possibly significantly, before its first stable release.
Ship stable cursor feeds or classic numbered pages through one request-aware Symfony service. PHP owns the query, the built-in Twig themes render accessible navigation, and the browser follows ordinary links without requiring JavaScript.
Installation
Usage
The paginator reads and validates ?cursor=, preserves the current filters and
generates previous/next URLs. Use query($source) for numbered pagination or
query($source)->lookahead() when the UI needs only previous/next without an
exact total. Use total($counter) when an aggregate query needs an
application-provided total; invokable Symfony services work directly.
What it provides
- First-class signed cursor pagination with forward and backward navigation
- Offset pagination with lazy totals and numbered pages
- Lookahead pagination without a count query
- Doctrine ORM 3 and DBAL 4.4+ adapters
- Callback builders and custom adapters for APIs, search engines and application sources
- Request-aware URLs generated through the Symfony Router
- Accessible, translated Twig navigation with Bootstrap, Tailwind and custom themes, plus validated attribute hooks
- Named paginator policies with Symfony autowiring
- PHP, Twig and JSON integration, plus LiveComponent support for numbered pages
- Real test helpers for page, URL and signed-cursor behavior
| Need | Strategy |
|---|---|
| Resist offset shifts while ordered values stay stable | Cursor |
| Page numbers and an exact total | Offset |
| Previous/next without a total | Lookahead |
Documentation
- Getting started
- Choosing a strategy
- Cursor pagination
- Rendering and customization
- Configuration
- debugging
Read the complete documentation in this repository.
This repository is a READ-ONLY subtree split.
All versions of ux-pagination with dependencies
symfony/config Version ^7.4|^8.0
symfony/dependency-injection Version ^7.4|^8.0
symfony/http-foundation Version ^7.4|^8.0
symfony/http-kernel Version ^7.4|^8.0
symfony/routing Version ^7.4|^8.0
symfony/translation-contracts Version ^3.0
symfony/twig-bundle Version ^7.4|^8.0
twig/twig Version ^3.10.3|^4.0