, (*1)
IMTDataGridBundle
Overview
This bundle provides a simple integration of the IMTDataGrid library into
Symfony2. IMTDataGrid is a library that provides a simple, powerful and fully
customizable tool for generating data-bound grids. This means that you can use
such libraries as jqGrid in your Symfony2 application., (*2)
Installation
1. Using Composer (recommended)
To install IMTDataGridBundle
with Composer just add the following to
your composer.json
file:, (*3)
{
"require": {
"imt/data-grid-bundle": "0.9.*"
}
}
Then, you can install the new dependencies by running Composer's update command
from the directory where your composer.json
file is located:, (*4)
$ php composer.phar update imt/data-grid-bundle
Now, Composer will automatically download all required files, and install them
for you. All that is left to do is to update your AppKernel.php
file, and
register the new bundle:, (*5)
<?php
// in AppKernel::registerBundles()
$bundles = array(
// ...
new IMT\DataGridBundle\IMTDataGridBundle(),
// ...
);
Usage
The bundle provides a new imt_data_grid.manager
service that returns an
instance of IMT\DataGrid\Manager\ManagerInterface
. So the only thing to do is
to request the imt_data_grid.manager
service from the container to get an
instance of IMT\DataGrid\Manager\ManagerInterface
and start using the
IMTDataGrid library:, (*6)
<?php
// ...
$dataGridManager = $container->get('imt_data_grid.manager');
// ...
Testing
$ make test
Contributing
Please see CONTRIBUTING for details., (*7)
Credits
License
This bundle is released under the MIT license. See the complete license in the
bundle:, (*8)
Resources/meta/LICENSE