cethyworks / doctrine-paginator-decorator
This package is abandoned and no longer maintained.
No replacement package was suggested.
Decorator/helper for Doctrine Paginator
Package info
github.com/Cethy/DoctrinePaginatorDecorator
Type:symfony-bundle
pkg:composer/cethyworks/doctrine-paginator-decorator
v1.0
2017-07-10 12:49 UTC
Requires
- php: >=5.6.17
- doctrine/orm: ^2.5
Requires (Dev)
- phpunit/phpunit: ^4.8
This package is not auto-updated.
Last update: 2024-11-15 20:58:40 UTC
README
Decorator/helper for Doctrine\ORM\Tools\Pagination\Paginator.
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