Download the PHP package imt/data-grid without Composer

On this page you can find all versions of the php package imt/data-grid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package data-grid

Build Status Coverage Status Dependencies Status

IMTDataGrid

Overview

This library provides a simple, powerful and fully customizable tool for binding grids on the client-side with data on the server. The library does not provide any tools for rendering grids on the client-side. So you pick yourself library that will render grids on the client-side (one of the such libraries is jqGrid). However, the library provides the opportunity to create an object of the grid, which contains the name, options, and a collection of columns. Therefore, you can use this object in order to simplify rendering grids on the client-side.

Installation

1. Using Composer (recommended)

To install IMTDataGrid with Composer just add the following to your composer.json file:

Then, you can install the new dependencies by running Composer's update command from the directory where your composer.json file is located:

Now, Composer will automatically download all required files, and install them for you.

Usage

Suppose you are building a simple blog and you need to have the grid on the back-end, which will display information about the posts.

It is further assumed that you are going to use the jqGrid library for rendering grids on the client-side, as well as Doctrine ORM as the data source.

To get started, you need to construct an object that will reflect the grid with information about the posts. In order to construct this object you need to create the grid builder that will be responsible for creation of the grid:

An object of the column in the constructor method takes an array of options. There are four options: index, label, name, and template. The first three are required. You can also pass more options, if necessary. For instance, if needed pass them to the library on the client-side.

All that is left to do is to get the grid manager in the controller and build the grid using by the grid builder:

Because was specified the url option for the grid, after rendering the grid on the client-side will be made an additional request to the server to retrieve data. So you need to bind with the grid the request that came to the server.

Once the construction of the grid using by the grid builder is finished, you need to call the createView method which will create an object of the grid view. You can pass this object into the template to configure rendering the grid on the client-side:

That is all. You should see on the client-side the grid with information about the posts. As you can see, to create the grid that is bound with data on the server and with the ability to search is very easy.

Testing

Contributing

Please see CONTRIBUTING for details.

Credits

License

This library is released under the MIT license. See the complete license in the LICENSE file that is distributed with this source code.


All versions of data-grid with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
symfony/event-dispatcher Version >=2.0
symfony/templating Version >=2.0
symfony/validator Version >=2.0
doctrine/orm Version >=2.2,<2.4-dev
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package imt/data-grid contains the following files

Loading the files please wait ....