2017 © Pedro Peláez
 

library pagination-bridge

pagination with Symfony 2 bridge.

image

fdevs/pagination-bridge

pagination with Symfony 2 bridge.

  • Wednesday, May 31, 2017
  • by andrey1s
  • Repository
  • 3 Watchers
  • 0 Stars
  • 3,002 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Pagination

This is a PHP 5.4 paginator with a totally different core concept., (*1)

Setup and Configuration

FDevsPagination uses Composer, please checkout the composer website for more information., (*2)

The simple following command will install pagination-bridge into your project. It also add a new entry in your composer.json and update the composer.lock as well., (*3)

$ composer require fdevs/pagination-bridge

Usage with Symfony framework

Enable the bundle in the kernel

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new FDevs\Bridge\Pagination\FDevsPaginationBundle(),
        // ...
    );
}

default configuration

f_devs_pagination:

    # set default pagination class MUST implement "FDevs\Pagination\Model\PaginationInterface".
    pagination_class:     FDevs\Pagination\Model\Pagination

    # Select the types, allowed "array,doctrine_mongodb,doctrine_orm".
    type_list:

        # Defaults:
        - array
        - doctrine_mongodb
        - doctrine_orm

Usage with The DependencyInjection Component

<?php
use Symfony\Component\DependencyInjection\ContainerBuilder;
use FDevs\Bridge\Pagination\DependencyInjection\FDevsPaginationExtension;

$container = new ContainerBuilder();
// $container configuration...

$container->registerExtension(FDevsPaginationExtension());

$paginator = $container->get('f_devs_pagination.paginator');


// init you target
$target = ..
// example $target = $em->createQuery('SELECT a FROM Entity\Article a');

$paginator->paginate($target);

Created by 4devs - Check out our blog for more insight into this and other open-source projects we release., (*4)

The Versions

31/05 2017

dev-master

9999999-dev

pagination with Symfony 2 bridge.

  Sources   Download

MIT

The Requires

 

page paging pagination paginator

31/05 2017

0.2.1

0.2.1.0

pagination with Symfony 2 bridge.

  Sources   Download

MIT

The Requires

 

page paging pagination paginator

11/10 2016

0.2.0

0.2.0.0

pagination with Symfony 2 bridge.

  Sources   Download

MIT

The Requires

 

page paging pagination paginator

09/10 2016

0.1.0

0.1.0.0

pagination with Symfony 2 bridge.

  Sources   Download

MIT

The Requires

 

page paging pagination paginator