<commit_before>Datagrid for Symfony2 inspired by Zfdatagrid and Magento Grid.  
This bundle was initiated by <NAME> (Sorien).

**Version**: 2.0
**Compatibility**: Symfony 2.0.x

See [https://github.com/APY/DataGridBundle/blob/master/Resources/doc/CHANGELOG.md](CHANGELOG) and [https://github.com/APY/DataGridBundle/blob/master/Resources/doc/UPGRADE-2.0.md](UPGRADE 2.0)

## Features

- Supports Entity (ORM), Document (ODM) and Vector (Array) sources
- Sortable and Filterable with operators (Comparison operators, range, starts/ends with, (not) contains, is (not) defined, regex)
- Auto-typing columns (Text, Number, Boolean, Array, DateTime, Date, ...)
- Locale support for DateTime, Date and Number columns (Decimal, Currency, Percent, Duration, Scientific, Spell out)
- Input and Select filters filled with the data of the grid or an array of values
- Export (CSV, Excel, _PDF_, XML, JSON, HTML, ...)
- Mass actions
- Row actions
- Supports mapped fields with Entity source
- Annotations and PHP configuration
- External filters box
- Pagination
- Column width and column align
- Prefix tranlated titles
- Grid manager for multi-grid on the same page
- Groups configuration for ORM and ODM sources
- Easy templates overriding (twig)
- Custom columns and filters creation
- ...

## Documentation

See the [summary](https://github.com/APY/DataGridBundle/blob/master/Resources/doc/summary.md).

## Screenshot

Full example:

![test](https://github.com/APY/DataGridBundle/blob/master/Resources/doc/images/screenshot_full.png)

Simple example with the external filter box in english

![test](https://github.com/APY/DataGridBundle/blob/master/Resources/doc/images/screenshot_en.png)

Simple example with the external filter box in french

![test](https://github.com/APY/DataGridBundle/blob/master/Resources/doc/images/screenshot_fr.png)

Data used in these screenshots (this is a phpmyadmin screenshot):

![test](https://github.com/APY/DataGridBundle/blob/master/Resources/doc/images/screenshot_database.png)

## Simple grid with an ORM source

```php
<?php
namespace MyProject\MyBundle\Controller;

use APY\DataGridBundle\Grid\Source\Entity;

class DefaultController extends Controller
{
	public function myGridAction()
	{
		// Creates a simple grid based on your entity (ORM)
		$source = new Entity('MyProjectMyBundle:MyEntity');

		// Get a Grid instance
		$grid = $this->get('grid');

		// Attach the source to the grid
		$grid->setSource($source);

		// Return the response of the grid to the template
		return $grid->getGridResponse('MyProjectMyBundle::myGrid.html.twig');
	}
}<commit_msg>Version 2 : Fix url in the readme file<commit_after>Datagrid for Symfony2 inspired by Zfdatagrid and Magento Grid.  
This bundle was initiated by <NAME> (Sorien).

**Version**: 2.0
**Compatibility**: Symfony 2.0.x

See [CHANGELOG](https://github.com/Abhoryo/DataGridBundle/blob/master/Resources/doc/CHANGELOG.md) and [UPGRADE 2.0](https://github.com/Abhoryo/DataGridBundle/blob/master/Resources/doc/UPGRADE-2.0.md)

## Features

- Supports Entity (ORM), Document (ODM) and Vector (Array) sources
- Sortable and Filterable with operators (Comparison operators, range, starts/ends with, (not) contains, is (not) defined, regex)
- Auto-typing columns (Text, Number, Boolean, Array, DateTime, Date, ...)
- Locale support for DateTime, Date and Number columns (Decimal, Currency, Percent, Duration, Scientific, Spell out)
- Input and Select filters filled with the data of the grid or an array of values
- Export (CSV, Excel, _PDF_, XML, JSON, HTML, ...)
- Mass actions
- Row actions
- Supports mapped fields with Entity source
- Annotations and PHP configuration
- External filters box
- Pagination
- Column width and column align
- Prefix tranlated titles
- Grid manager for multi-grid on the same page
- Groups configuration for ORM and ODM sources
- Easy templates overriding (twig)
- Custom columns and filters creation
- ...

## Documentation

See the [summary](https://github.com/Abhoryo/DataGridBundle/blob/master/Resources/doc/summary.md).

## Screenshot

Full example:

![test](https://github.com/Abhoryo/DataGridBundle/blob/master/Resources/doc/images/screenshot_full.png)

Simple example with the external filter box in english

![test](https://github.com/Abhoryo/DataGridBundle/blob/master/Resources/doc/images/screenshot_en.png)

Simple example with the external filter box in french

![test](https://github.com/Abhoryo/DataGridBundle/blob/master/Resources/doc/images/screenshot_fr.png)

Data used in these screenshots (this is a phpmyadmin screenshot):

![test](https://github.com/Abhoryo/DataGridBundle/blob/master/Resources/doc/images/screenshot_database.png)

## Simple grid with an ORM source

```php
<?php
namespace MyProject\MyBundle\Controller;

use APY\DataGridBundle\Grid\Source\Entity;

class DefaultController extends Controller
{
	public function myGridAction()
	{
		// Creates a simple grid based on your entity (ORM)
		$source = new Entity('MyProjectMyBundle:MyEntity');

		// Get a Grid instance
		$grid = $this->get('grid');

		// Attach the source to the grid
		$grid->setSource($source);

		// Return the response of the grid to the template
		return $grid->getGridResponse('MyProjectMyBundle::myGrid.html.twig');
	}
}
{'fraction_non_alphanumeric': 0.11433479671693071, 'fraction_numerical': 0.003626646306547051, 'mean_word_length': 4.640473627556513, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6214568', 'n_tokens_mistral': 1637, 'n_tokens_neox': 1572, 'n_words': 491}