cethyworks/doctrine-paginator-decorator

This package is abandoned and no longer maintained. No replacement package was suggested.

Decorator/helper for Doctrine Paginator

v1.0 2017-07-10 12:49 UTC

This package is not auto-updated.

Last update: 2024-11-15 20:58:40 UTC


README

Decorator/helper for Doctrine\ORM\Tools\Pagination\Paginator.

CircleCI

Install

1. Composer require

$ composer require cethyworks/doctrine-paginator-decorator

How to use

$paginator = new DoctrinePaginatorDecorator($queryBuilder, $currentPage, $limitPerPage);

$paginator->getPage(); // return current page
$paginator->getLimit(); // return limit per page
$paginator->hasNextPage(); // return true if there is enough result for a next page
$paginator->getCount(); // return total entity count
$paginator->getList(); // return entity list for current page