PHPackages                             darthshell/grid - 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. [Framework](/categories/framework)
4. /
5. darthshell/grid

ActiveLibrary[Framework](/categories/framework)

darthshell/grid
===============

Grid for laravel

1.1.11(6y ago)226GPL-3.0+PHP

Since Nov 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/DarthShelL/grid)[ Packagist](https://packagist.org/packages/darthshell/grid)[ RSS](/packages/darthshell-grid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (18)Used By (0)

DS Grid
=======

[](#ds-grid)

Model visualization for laravel

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

[](#installation)

```
composer require darthshell/grid
php artisan vendor:publish --provider="DarthShelL\Grid\GridServiceProvider"

```

Usage
-----

[](#usage)

Please, make sure u have "scripts" and "styles" sections in your layout. Layout example:

```

    ...

    ...
    @yield('styles')

    ...
    @yield('scripts')

...

```

Then in the view you want to contain a grid add a line:

```
{!! $provider->renderGrid() !!}

```

And also don't forget about controller action:

```
use App\Http\Controllers\Controller;
use DarthShelL\Grid\DataProvider;

class MySuperController extends Controller
{
    public function index()
    {

        $provider = new DataProvider(new ModelIWantToShow());
        $provider->processUpdate();

        return view('index', compact('provider'));
    }
}

```

That's all!

Short doc
---------

[](#short-doc)

### setting rows number per page

[](#setting-rows-number-per-page)

```
$provider->perPage = 15;

```

### hiding column

[](#hiding-column)

```
$provider->hideColumn('column_name');
$provider->hideColumn('column_name','column2_name',...);

```

### adding filter

[](#adding-filter)

#### integer filter

[](#integer-filter)

it also supports operators \[ &gt;, &lt;, =, &gt;=, &lt;=, &gt;&lt; \]

```
$provider->addFilter('id', $provider::INTEGER);

```

#### string filter

[](#string-filter)

it also supports operator \[ % \] with sintax equal to SQL LIKE

```
$provider->addFilter('name', $provider::STRING);

```

### adding column format

[](#adding-column-format)

```
$provider->addFormat('type', function($row) {
    $types = [
        0 => 'span',
        1 => 'link'
    ];
    return $types[$row->type];
});

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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 ~4 days

Total

16

Last Release

2293d ago

Major Versions

0.1.3 → 1.0.02019-12-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d300bf6ffce3b39eab927bca9ff9158b82916474b1bf773cb054ba6eb72b951?d=identicon)[DarthShelL](/maintainers/DarthShelL)

---

Top Contributors

[![DarthShelL](https://avatars.githubusercontent.com/u/1748290?v=4)](https://github.com/DarthShelL "DarthShelL (15 commits)")

### Embed Badge

![Health badge](/badges/darthshell-grid/health.svg)

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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