Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apy/apydatagridbundle
Symfony Datagrid Bundle
https://github.com/apy/apydatagridbundle
datagrid grid php symfony-bundle
Last synced: 1 day ago
JSON representation
Symfony Datagrid Bundle
- Host: GitHub
- URL: https://github.com/apy/apydatagridbundle
- Owner: APY
- License: mit
- Created: 2011-05-17T12:28:58.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2024-12-17T13:03:22.000Z (about 2 months ago)
- Last Synced: 2025-02-04T20:05:18.556Z (1 day ago)
- Topics: datagrid, grid, php, symfony-bundle
- Language: PHP
- Homepage:
- Size: 2.18 MB
- Stars: 496
- Watchers: 45
- Forks: 343
- Open Issues: 96
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# APYDataGrid Bundle
This **Symfony Bundle** allows you to create wonderful grid based on data or entities of your projet.
[![Build Status](https://secure.travis-ci.org/APY/APYDataGridBundle.png?branch=master)](http://travis-ci.org/APY/APYDataGridBundle) [![Coverage Status](https://coveralls.io/repos/github/APY/APYDataGridBundle/badge.svg?branch=test-improvement)](https://coveralls.io/github/APY/APYDataGridBundle?branch=test-improvement)
## Features
This bundle allow you to create listing with many features that you can expect :
- Various data sources : supports **Entity** (ORM), **Document** (ODM) and **Vector** (Array) sources
- Data manipulation : **Sortable** and **Filterable** with many operators
- Auto-typing columns (Text, Number, Boolean, Array, DateTime, Date, ...)
- Locale support for columns and data (DateTime, Date and Number columns)
- Input, Select, checkbox and radio button 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
- Securing the columns, actions and export with security roles
- Annotations and PHP configuration
- External filters box
- Ajax loading
- Pagination (You can also use Pagerfanta)
- 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
- *and many more*## Installation, documentation
See the [summary](https://github.com/APY/APYDataGridBundle/blob/master/Resources/doc/summary.md).
## Screenshot
Full example with this [CSS style file](https://github.com/APY/APYDataGridBundle/blob/master/Resources/doc/grid_configuration/working_example.css):
![test](https://github.com/APY/APYDataGridBundle/blob/master/Resources/doc/images/screenshot_full.png?raw=true)
Simple example with the external filter box in english:
![test](https://github.com/APY/APYDataGridBundle/blob/master/Resources/doc/images/screenshot_en.png)
Same example in french:
![test](https://github.com/APY/APYDataGridBundle/blob/master/Resources/doc/images/screenshot_fr.png?raw=true)
## Example of a simple grid with an ORM source
```php
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');
}
}
```#### Simple configuration of the grid in the entity
```php
{{ grid(grid) }}
```And clear your cache.
## Bundle history
Datagrid for Symfony inspired by Zfdatagrid and Magento Grid.
This bundle was initiated by Stanislav Turza (Sorien).See [CHANGELOG](https://github.com/APY/APYDataGridBundle/blob/master/CHANGELOG.md) and [UPGRADE 2.0](https://github.com/APY/APYDataGridBundle/blob/master/UPGRADE-2.0.md)