2017 © Pedro Peláez
 

symfony-bundle paginator-bundle

lightweight symfony2 pagination

image

facile-it/paginator-bundle

lightweight symfony2 pagination

  • Thursday, December 21, 2017
  • by Fpanina
  • Repository
  • 36 Watchers
  • 4 Stars
  • 3,566 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 11 Versions
  • 1 % Grown

The README.md

A lightweight symfony2 pagination system, (*1)

Build Status Code Climate, (*2)

Requirements:

  • Twig>=1.5 version is required if you plan to include the twig template.
  • Twig 2.* is allowed

Features:

  • Inizialization can be made via request or via setters
  • Handle route as well as route parameters

Installation and configuration:

Quite easy Composer, add:, (*3)

{
    "require": {
        "facile-it/paginator-bundle": "dev-master"
    }
}

Or if you want to clone the repos:, (*4)

git clone git://github.com/facile-it/paginator-bundle.git vendor/facile-it/PaginatorBundle

, (*5)

Add PaginatorBundle to your application kernel

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Facile\PaginatorBundle\FacilePaginatorBundle(),
        // ...
    );
}

Usage examples:

Controller

Currently paginator can paginate:, (*6)

  • Doctrine\ORM\QueryBuilder
// Acme\MainBundle\Controller\ProductController.php


    $queryBuilder = $this
        ->get('doctrine.orm.entity_manager')
        ->getRepository('AcmeMainBundle:Product')
        ->createQueryBuilder('product')

    $paginator = $this->get('facile.paginator')->parseRequest($this->getRequest());

    return $this->render('AcmeMainBundle:Product:list.html.twig', array(
        'results' => $pagination,
        'paginationInfo' => $paginator->getPaginationInfo($filterBuilder
        )
    );

View


{# display results #}
{% for product in results %} {% endfor %}
{{ product.id }} {{ product.title }}
{# display navigation #}

The Versions

21/12 2017

dev-master

9999999-dev http://github.com/facile-it/paginator-bundle

lightweight symfony2 pagination

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Panina Francesco

doctrine symfony pagination paginator

21/12 2017

1.5

1.5.0.0 http://github.com/facile-it/paginator-bundle

lightweight symfony2 pagination

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Panina Francesco

doctrine symfony pagination paginator

21/12 2017

dev-symfony4

dev-symfony4 http://github.com/facile-it/paginator-bundle

lightweight symfony2 pagination

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Panina Francesco

doctrine symfony pagination paginator

23/02 2017

1.4

1.4.0.0 http://github.com/facile-it/paginator-bundle

lightweight symfony2 pagination

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Panina Francesco

doctrine symfony pagination paginator

23/02 2017

dev-routes_generation

dev-routes_generation http://github.com/facile-it/paginator-bundle

lightweight symfony2 pagination

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Panina Francesco

doctrine symfony pagination paginator

16/01 2017

1.3

1.3.0.0 http://github.com/facile-it/paginator-bundle

lightweight symfony2 pagination

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Panina Francesco

doctrine symfony pagination paginator

13/12 2016

1.2

1.2.0.0 http://github.com/facile-it/paginator-bundle

lightweight symfony2 pagination

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Panina Francesco

pagination paginator

15/01 2016

1.1

1.1.0.0 http://github.com/facile-it/paginator-bundle

lightweight symfony2 pagination

  Sources   Download

Apache License Version 2.0

The Requires

 

The Development Requires

by Panina Francesco

pagination paginator

14/01 2016

1.0.1

1.0.1.0 http://github.com/facile-it/paginator-bundle

lightweight symfony2 pagination

  Sources   Download

Apache License Version 2.0

The Requires

 

The Development Requires

by Panina Francesco

pagination paginator

16/06 2015

dev-tests_goodbye_mockery

dev-tests_goodbye_mockery http://github.com/facile-it/paginator-bundle

lightweight symfony2 pagination

  Sources   Download

Apache License Version 2.0

The Requires

 

The Development Requires

by Panina Francesco

pagination paginator

26/08 2014

v1.0

1.0.0.0 http://github.com/facile-it/paginator-bundle

lightweight symfony2 pagination

  Sources   Download

Apache License Version 2.0

The Requires

 

The Development Requires

by Panina Francesco

pagination paginator