Download the PHP package ns/filtered-pagination-bundle without Composer
On this page you can find all versions of the php package ns/filtered-pagination-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ns/filtered-pagination-bundle
More information about ns/filtered-pagination-bundle
Files in ns/filtered-pagination-bundle
Download ns/filtered-pagination-bundle
More information about ns/filtered-pagination-bundle
Files in ns/filtered-pagination-bundle
Vendor ns
Package filtered-pagination-bundle
Short Description This bundle provides a paginated filter handler
License MIT
Package filtered-pagination-bundle
Short Description This bundle provides a paginated filter handler
License MIT
Please rate this library. Is it a good library?
Informations about the package filtered-pagination-bundle
Installation
composer require ns/filtered-pagination-bundle
Edit AppKernel.php and add the bundle
...
new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
new Lexik\Bundle\FormFilterBundle\LexikFormFilterBundle(),
new NS\FilteredPaginationBundle\NSFilteredPaginationBundle(),
Usage
In a controller you request the filtered pagination bundle.
$query = $this->get('doctrine.orm.entity_manager')->getRepository('...')->getSomeQuery();
$filteredPaginator = $this->get('ns.filtered_pagination');
list($form, $pagination, $redirect) = $filteredPaginator->process($request, $formType, $query, 'sessionKey');
if ($redirect) {
return $this->redirect($this->generateUrl('practiceUsers'));
}
Limit Select
You can use the provided LimitSelectType to provide a 'X' results per page selector. If you do so you should include the main.js resource which handles detecting changes to the number per page.
All versions of filtered-pagination-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
symfony/framework-bundle Version ^4.0||^5.0||^6.0
symfony/form Version ^4.0||^5.0||^6.0
symfony/event-dispatcher Version ^4.0||^5.0||^6.0
symfony/http-foundation Version ^4.0||^5.0||^6.0
knplabs/knp-paginator-bundle Version ^2.4||^5.0||^6.0
lexik/form-filter-bundle Version ^4.0||^5.0||^6.0||^7.0
liip/rmt Version ^1.6
symfony/framework-bundle Version ^4.0||^5.0||^6.0
symfony/form Version ^4.0||^5.0||^6.0
symfony/event-dispatcher Version ^4.0||^5.0||^6.0
symfony/http-foundation Version ^4.0||^5.0||^6.0
knplabs/knp-paginator-bundle Version ^2.4||^5.0||^6.0
lexik/form-filter-bundle Version ^4.0||^5.0||^6.0||^7.0
liip/rmt Version ^1.6
The package ns/filtered-pagination-bundle contains the following files
Loading the files please wait ....