PHPackages                             mkdesignn/datagridview - 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. mkdesignn/datagridview

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

mkdesignn/datagridview
======================

v1.7(9y ago)232mitPHP

Since Aug 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mkdesignn/datagridview)[ Packagist](https://packagist.org/packages/mkdesignn/datagridview)[ RSS](/packages/mkdesignn-datagridview/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

datagridview
============

[](#datagridview)

Most of the time you face hard time to render data into datatables and much more harder thing is to use ajax. In this package I have made it so easy that with 4 arguments you can build your datagrid and use it in a very efficient way . the theme that this datagrid is build on is metronic ver.4.

Usage
-----

[](#usage)

### Step 1: Install Through Composer

[](#step-1-install-through-composer)

With composer :

```
{

    "require": {
        "mkdesignn/datagridview": "1.4"
    }
}
```

### Step 2: Add service provider

[](#step-2-add-service-provider)

```
  mkdesignn\datagridview\MkDatagridviewServiceProvider::class

```

### Step 3: Add Facade

[](#step-3-add-facade)

```
  "DataGrid" => mkdesignn\datagridview\DataGrid::class

```

Example Num1
------------

[](#example-num1)

```
  $table:: 'Table_name'
  $columns:: ['column_1', 'column_2'];
  $columns_title:: ['column_1_name', 'column_2_name'];
  $data_table_id:: 'table_1'
  echo DataGrid::build($table, $columns, $column_title, $data_table_id)->render();

```

the above code will give you full dynamic datatable .

Examples Num2
-------------

[](#examples-num2)

What if you wanted to retrieve only the result and you did not interest with the view of the table, the only things you should do it's to use result instead of render

```
  $table:: 'Table_name'
  $columns:: ['column_1', 'column_2'];
  $columns_title:: ['column_1_name', 'column_2_name'];
  $data_table_id:: 'table_1'
  DataGrid::build($table, $columns, $column_title, $data_table_id)->result();

```

the above code will return you result which you can access it by ajax.complete method which this result is derived of you'r data\_table\_id.

### access result

[](#access-result)

```
 $.ajaxComplete(function(event, xhr, data){
    console.log(data_table_id) // will show you the result
 })

```

the result its an object which contains records, column per page, current\_page, and much more ...

One more feature - Examples Num3
--------------------------------

[](#one-more-feature---examples-num3)

what if you want to use filtering on your datatable, well its very easy in using this datagrid.

```
  $table:: 'Table_name'
  $columns:: ['column_1', 'column_2'];
  $columns_title:: ['column_1_name', 'column_2_name'];
  $data_table_id:: 'table_1'
  $type = ['column_to_use_it_as_filter']
  DataGrid::build($table, $columns, $column_title, $data_table_id, $type)->result();

```

and thats it , now you can use it with one filter on your datatable. which you can filter throught it and also search by choosin that one single filtering .

more feature on the way
-----------------------

[](#more-feature-on-the-way)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~17 days

Recently: every ~26 days

Total

7

Last Release

3511d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3639529?v=4)[mkdesign82](/maintainers/mkdesign82)[@mkdesign82](https://github.com/mkdesign82)

---

Top Contributors

[![mkdesignn](https://avatars.githubusercontent.com/u/4149125?v=4)](https://github.com/mkdesignn "mkdesignn (41 commits)")

### Embed Badge

![Health badge](/badges/mkdesignn-datagridview/health.svg)

```
[![Health](https://phpackages.com/badges/mkdesignn-datagridview/health.svg)](https://phpackages.com/packages/mkdesignn-datagridview)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[illuminate/pipeline

The Illuminate Pipeline package.

9348.3M267](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10533.5M991](/packages/illuminate-pagination)[illuminate/redis

The Illuminate Redis package.

8314.4M363](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

224.5M132](/packages/illuminate-cookie)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
