PHPackages                             gdgrid/gd - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gdgrid/gd

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gdgrid/gd
=========

The PHP 7 Grid-Data Library

4961PHP

Since Jan 7Pushed 6y agoCompare

[ Source](https://github.com/gdgrid/gd)[ Packagist](https://packagist.org/packages/gdgrid/gd)[ RSS](/packages/gdgrid-gd/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Grid-Data
=========

[](#grid-data)

The PHP 7 Grid-Data Library.

The main purpose of the Library is to automatically generate tables, forms and representations of certain entities in the views. If the form and column field settings of the entity are not specified, then these settings are taken from the column types and their names in the database table.

For all this, you need to implement a specific interface in the entity itself, or connect a separate class that implements the interface itself and pass it to the generator.

Install
=======

[](#install)

`composer require gdgrid/gd`

If you want to run the test application (included in the "testapp" folder of the Library), therefor you will have to install all necessary dependencies from composer.json:

```
{
  "require": {
    "gdgrid/gd": "dev-master"
  },
  "require-dev": {
    "illuminate/database": "5.7",
    "illuminate/filesystem": "5.7",
    "illuminate/translation": "5.7",
    "illuminate/validation": "5.7",
    "symfony/var-dumper": "^4.1",
    "seytar/php-router": "dev-master"
  },
  "autoload": {
    "classmap": [
      "testapp/models/"
    ]
  }
}

```

Usage example
=============

[](#usage-example)

**1. Using Entity itself.**

`Your model Class:`

```
