Download the PHP package nadialabs/paginator-bundle without Composer

On this page you can find all versions of the php package nadialabs/paginator-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 paginator-bundle

NadiaPaginatorBundle

NadiaPaginatorBundle can help you build pagination UI quickly. You can design your filter and search UI with Symfony Form component, and easily validate input parameters with Form.

Installation

Install with composer , run:

Register Bundle to AppKernel

Bundle Configuration

Create PaginatorType class

Define a Paginator configuration.

Example class: AppBundle\Paginator\Movies\PaginatorType

You can implement these methods to define a PaginatorType class:

buildSearch

Use SearchBuilder to setup search form elements with Symfony FormType styles.

buildFilter

Use FilterBuilder to setup filter form elements with Symfony FormType styles.

buildSort

Use SortBuilder to setup sorting methods.

buildPageSize

Use PageSizeBuilder to setup page size list.

getFormOptions

Setup the paginator form options, return an array contain form options.

configureOptions

Setup the paginator options, you can define custom options to injecting extra data into PaginatorType. PaginatorType will use this options in these methods: buildSearch buildFilter buildSort buildPageSize getFormOptions.

Create SearchQueryCompiler class

Define a QueryCompiler to build custom search criteria.

Example class for Doctrine QueryBuilder: AppBundle\Paginator\Movies\FilterQueryCompiler

Create FilterQueryCompiler class

Define a QueryCompiler to build custom filter criteria.

Example class for Doctrine QueryBuilder: AppBundle\Paginator\Movies\FilterQueryCompiler

Create Pagination instance with PaginatorType

Example controller: MovieController
Example entities: People

To get a Pagination instance, the process as below:

  1. Use PaginatorTypeContainer to generate a PaginatorType instance.
  2. Use PaginatorFactory to generate a Paginator instance with a PaginatorType instance.
  3. Create a query instance (in this example is a Doctrine ORM QueryBuilder instance)
  4. Do paginate with Paginator, and get a Pagination instance
  5. Render a view with Pagination instance

Rendering HTML with Twig

You can easily render a list page with this template @NadiaPaginator/templates/bootstrap4/pagination.html.twig
Use twig embed tag to overwrite tableContent block and put your table contents in tableContent block.

Example twig file: index.html.twig

Rendering searches block in Twig

Use nadia_paginator_searches method to render search block in Twig template.

Rendering filters block in Twig

Use nadia_paginator_filters method to render filter block in Twig template.

Rendering sorts block in Twig

Use nadia_paginator_sorts method to render sorting block in Twig template.

Rendering page sizes block in Twig

Use nadia_paginator_page_sizes method to render page sizes block in Twig template.

Rendering sort link in Twig


All versions of paginator-bundle with dependencies

PHP Build Version
Package Version
Requires doctrine/collections Version ^1.0
symfony/config Version ^3.4|^4.0
symfony/dependency-injection Version ^3.4|^4.0
symfony/event-dispatcher Version ^3.4|^4.0
symfony/form Version ^3.4|^4.0
symfony/http-foundation Version ^3.4|^4.0
symfony/http-kernel Version ^3.4|^4.0
symfony/options-resolver Version ^3.4|^4.0
symfony/routing Version ^3.4|^4.0
twig/twig Version ^2.0|^3.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 nadialabs/paginator-bundle contains the following files

Loading the files please wait ....