PHPackages                             zofe/datagrid - 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. zofe/datagrid

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

zofe/datagrid
=============

Simple datagrid / datatable presenter for eloquent/laravel

1221PHP

Since Oct 27Pushed 11y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Datagrid
========

[](#datagrid)

DataGrid is a simple presenter widget for database queries, models, or any generic Array. By default it produce Bootstrap 3 compatible output.

At this moment is built on [Deficient](https://github.com/zofe/deficient) (a subset of laravel components including eloquent and blade, plus [burp](https://github.com/zofe/burp) router). The plan is to make it compatible also with laravel, as standard package.

It can

- Paginate results
- Sort results
- Display results in a HTML Table (defining each column)
- Define each column, row and cell (sorting links, formatting, etc.)
- Customize view output including pagination style
- Export results as CSV / Excel
- Let you define url-semantic for sort/pagination segments or parameters (thanks to burp)

usage
-----

[](#usage)

```
    $grid = DataGrid::source(new User);
    $grid->add('id','ID',true)->style('width:100px');
    $grid->add('name','Name',true);
    $grid->paginate(5);
```

why not starting from laravel?
------------------------------

[](#why-not-starting-from-laravel)

Because it can be used stand alone, and in any other framework.
It has really minimal dependencies.

Installation
------------

[](#installation)

install via composer

```
{
    "require": {
        "zofe/datagrid": "dev-master"
    }
}

```

Setup
-----

[](#setup)

To configure database, views, you must reference to [Deficient](https://github.com/zofe/deficient)
This is a small how-to

- create minimum folders / configuration files
- deploy datagrid views
- deploy a front controller and a sample (optional, but suggested)

```
  $ php vendor/zofe/deficient/deficient setup:folders
  $ php vendor/zofe/datagrid/datagrid setup:views
  $ php vendor/zofe/datagrid/datagrid setup:router

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.3% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/261951?v=4)[Felice Ostuni](/maintainers/zofe)[@zofe](https://github.com/zofe)

---

Top Contributors

[![zofe](https://avatars.githubusercontent.com/u/261951?v=4)](https://github.com/zofe "zofe (33 commits)")[![tacone](https://avatars.githubusercontent.com/u/659801?v=4)](https://github.com/tacone "tacone (2 commits)")

### Embed Badge

![Health badge](/badges/zofe-datagrid/health.svg)

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

###  Alternatives

[james.xue/ali-safe-api

阿里内容检测，包括文本、关键词文本检测以及对图片涉黄、暴恐、敏感检测、广告、二维码等

664.8k1](/packages/jamesxue-ali-safe-api)[devrabiul/laravel-seo-manager

Laravel SEO Manager is an SEO tool that improves SEO by adding recommended meta tags.

386.1k](/packages/devrabiul-laravel-seo-manager)

PHPackages © 2026

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