Download the PHP package thomasdcodes/list-view-bundle without Composer
On this page you can find all versions of the php package thomasdcodes/list-view-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download thomasdcodes/list-view-bundle
More information about thomasdcodes/list-view-bundle
Files in thomasdcodes/list-view-bundle
Package list-view-bundle
Short Description A lightweight collection of entities for storing data of a listview.
License MIT
Homepage https://thomasd.codes
Informations about the package list-view-bundle
thomasd.codes List View Bundle for Symfony
Description
This Bundle provides an easy-to-use set of different rich models packed into one wrapper to hold all information for a list view.
Its reason of life is only to hold the information and get richer at runtime of the app. For example, after init the in it doesn't know how many search results are found. You have the set the number of search results after querying your repo with the help of or , because the information of these models influence the number of search results.
Install
If you're using Symfony Flex, the Bundle should be registered in your config/bundles.php
Quick start
With the bundle comes a factory to create the Model. There is only one static method of creating this model, for example in a controller:
Content
The ListViewBundle contains the following models, which are all part of the container class ListControl:
- FilterOrganizer: Handles the filters from GET Parameter of the Request FilterOrganizer Documentation
- Paginator: A multi-stage process for generating relevant data for pagination Paginator Documentation
- SearchTermOrganizer: Handles the search term from GET Parameter of the Request SearchTermOrganizer Documentation
- SortOrganizer: Handles the sort from GET Parameter of the Request SortOrganizer Documentation