Download the PHP package arturdoruch/list-bundle without Composer

On this page you can find all versions of the php package arturdoruch/list-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package list-bundle

ListBundle

Symfony bundle for pagination, sorting and filtering of list items.

Bundle contains paginators supporting:

For other database queries or cursors you can create own paginators. See paginators configuration option.

Installation

Run composer command

and register list-bundle and required other bundles in application Kernel class.

In Symfony 3

In Symfony >= 4

JavaScript support

For JavaScript support install (with yarn or npm) package @arturdoruch/list. Package contains also file with CSS styles, styling the filter form and item list.

Bundle configuration

See bundle configuration options.

Usage

In short:

  1. Create controller action getting the item list
  2. Create template displaying item list

Controller

Creating controller action getting the item list

The controller action requirements:

Full example of the controller action getting book list:

Pagination item limits

The default limits of list items displayed per page are specified in bundle configuration at path pagination.item_limits. To setting different item limits for a specific list call ArturDoruch\ListBundle\Pagination::setItemLimits() method with a custom values.

Example:

Filter form

In order to filtering list items, you must create FormType class.

The filter form must have method type of GET and csrf_protection option should be set to false.
Created FormType class pass in the constructor of the ArturDoruch\ListBundle\ItemList object.

Example of the filter form type class:

Sort choice collection

If you want to render an HTML "select" field with sorting options create ArturDoruch\ListBundle\Sorting\SortChoiceCollection object and specify the sorting choices. Then pass the SortChoiceCollection object in the constructor of the ArturDoruch\ListBundle\ItemList object.

This is an alternative for sorting links rendered in twig template with arturdoruch_list_sort_link function.

Example:

View

Twig functions

See Twig functions rendering the list components.

Creating template displaying item list

Template for use with AJAX request.

Example of template displaying all of the list components.


All versions of list-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
symfony/framework-bundle Version ^3.3|^4.0|^5.0
symfony/form Version ^3.3|^4.0|^5.0
symfony/yaml Version ^3.3|^4.0|^5.0
symfony/twig-bundle Version ^3.3|^4.0|^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package arturdoruch/list-bundle contains the following files

Loading the files please wait ....