2017 © Pedro Peláez
 

library grid

Generic data grids and lists

image

prezent/grid

Generic data grids and lists

  • Monday, June 4, 2018
  • by prezent
  • Repository
  • 5 Watchers
  • 9 Stars
  • 4,208 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 24 Versions
  • 10 % Grown

The README.md

prezent/grid

Build Status, (*1)

A framework-independent library for building and rendering generic datagrids in PHP., (*2)

Installation

This extension can be installed using Composer. Tell composer to install the extension:, (*3)

$ php composer.phar require prezent/grid

Symfony users should use the prezent/grid-bundle. This sets up everything automatically and adds extra features such as router and translation integration., (*4)

Quick example

If you have any experience using Symfony Forms, then this grid library will feel very familiar. Start by defining a grid:, (*5)

<?php

namespace My\Grids;

use Prezent\Grid\BaseGridType;
use Prezent\Grid\Extension\Core\Type\DateTimeType;
use Prezent\Grid\Extension\Core\Type\StringType;
use Prezent\Grid\GridBuilder;

class MyGridType extends BaseGridType
{
    public function buildGrid(GridBuilder $builder, array $options = [])
    {
        $builder
            ->addColumn('id', StringType::class, [
                'label' => 'ID',
                'url'   => '/view/{id}',
            ])
            ->addColumn('name', StringType::class)
            ->addColumn('created', DateTimeType::class, ['pattern' => 'yyyy qqq'])
            ->addAction('edit', ['url' => '/edit/{id}'])
        ;
    }
}

In your controller, create the grid and assign it to your view:, (*6)

<?php

namespace My\Controllers;

use My\Grids\MyGridType;

class MyController
{
    public function indexAction()
    {
        $data = $this->db->findSomeData();
        $grid = $this->getService('grid_factory')->createGrid(MyGridType::class);

        $this->view->data = $data;
        $this->view->grid = $grid->createView();
    }
}

Finally, render the grid using Twig:, (*7)

{{ grid(grid, data) }}

Documentation

The complete documentation can be found in the doc directory., (*8)

The Versions

04/06 2018

dev-master

9999999-dev http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

04/06 2018

0.9.11

0.9.11.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

28/05 2018

0.9.10

0.9.10.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

28/04 2018

0.9.9

0.9.9.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

13/04 2018

0.9.8

0.9.8.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

26/10 2017

0.9.7

0.9.7.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

05/10 2017

0.9.6

0.9.6.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

18/01 2017

0.9.5

0.9.5.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

04/01 2017

0.9.4

0.9.4.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

25/10 2016

0.9.3

0.9.3.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

19/10 2016

0.9.2

0.9.2.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

19/10 2016

0.9.1

0.9.1.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

18/10 2016

0.9.0

0.9.0.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

25/07 2016

0.8.3

0.8.3.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

21/06 2016

0.8.2

0.8.2.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

20/05 2016

0.8.1

0.8.1.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

14/04 2016

0.8.0

0.8.0.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

13/04 2016

0.7.0

0.7.0.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

13/01 2016

0.6.0

0.6.0.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

11/01 2016

0.5.0

0.5.0.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

09/12 2015

0.4.0

0.4.0.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

08/12 2015

0.3.0

0.3.0.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

27/10 2015

0.2.0

0.2.0.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid

20/08 2015

0.1.0

0.1.0.0 http://www.prezent.nl

Generic data grids and lists

  Sources   Download

MIT

The Requires

 

by Prezent Internet B.V.

grid list datagrid