0.0.1 2013-07-20 14:49 UTC


Mgrid version 2.x generates an optimal grid for your application. This version has great improvements in regardless to renders, dependencies, and other features. Please take a look at the changelog.

Thanks, Renato Medina.


1. The library

1.1. Composer

The recommended way to install Mgrid is through composer. Just create a composer.json file into the root of your project and add the following lines:

    "require": {
        "mdn/mgrid": "dev-master"

then run the php composer.phar install command to install it. At this stage everything should go smooth.

1.2. Download

Alternatively, you can download the file and extract it.

2. The Assets

Into the package you can find the assets:


Here you have 2 options:

1. Just move the folder to the root of your application, making it accessible 
   by your url (e.g.

2. Just create a symlink.

PHP and Frameworks Compatibility

It can either be used with flat PHP or any Framework out there. Here I've tried to follow the PSR standards. Making this component as portable as possible.

Mgrid uses Twig Template Engine to render its html. If you not familiar with Twig, you can take a look here. Although, it's not necessary to know how Twig works to use Mgrid.

Keen to help? Join the github project.

Core Concepts

This grid should be able to display data sources from simple PHP arrays. The output is in HTML. Filters, sorting, pagination are also available.


Go to for more detailed documentation.


Available on the component website.


  • Any flavor of PHP 5.3 or above should do
  • Twig template engine 1.* version

##Submitting bugs and feature requests

Bugs and feature request are tracked on GitHub


Renato Medina - -
See also the list of contributors which participated in this project.


Mgrid is released under the LGPL license. - see the LICENSE page for details