- Bump minimum required PHP version to 7.4.
- The library now enforces PHP7 types. Code not respecting previous docblock type hints might break.
- Support symfony ^4.4 or ^5.5.
- Added Twig extension.
- Dropped support for PHP v5.3 & HHVM.
- Merged
kgilden/pager-bundle
to this package - Made
Page::isOutOfBounds
not cause counting rows
- Added build matrix to test for highest and lowest dependencies
- Support for Symfony v3.x
- Added
Page::getItemsOfAllPages()
to fetch all items from all pages
- Minor refactorings
- New
MongoAdapter
to page mongoDB cursors
- New generic Adapter to create any adapter
- New
ElasticaAdapter
to page ElasticSearch queries - New
DqlByHandAdapter
to page DQL queries and provide a manually created count query; - Added
getNext
andgetPrevious
methods to get next and previous pages - Always have at least 1 page
- Made items per page configurable via
Pager::__construct
- Added bounds checking (i.e. seeing whether a page is out of bounds)
- Fixed arguments of
Page
passed flipped when adding a callback CallbackDecorator
fails, if the item count differs after the callback- Fixed
CachedDecorator
not returning items, if they equallednull
- Fixed
CachedDecorator
asking for items again if none found at first - Marked the public API with
@api
annotations
- Added decorator to infer current page straight from Request
- Added new "last merged" paging strategy
- Adapters return arrays of items instead of iterators
- Got rid of Paged object
- Made items per page configurable via Pager::paginate
- Initial prototype