PHPackages                             mrjj/lvlgrid - 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. mrjj/lvlgrid

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

mrjj/lvlgrid
============

Grid helper to your Laravel application.

V1.0.4(10y ago)7381[1 issues](https://github.com/marcosrjjunior/lvlgrid/issues)PHP

Since Mar 1Pushed 10y ago1 watchersCompare

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

READMEChangelog (3)DependenciesVersions (6)Used By (0)

lvlGrid
=======

[](#lvlgrid)

[![lvlgrid](https://cloud.githubusercontent.com/assets/5287262/14336211/f996cf84-fc37-11e5-9c0b-04c27625232e.jpg)](https://github.com/marcosrjjunior/lvlgrid/)

Documentation
-------------

[](#documentation)

- [Installation](#installation)
- [Getting started](#getting-started)
- [Get Data](#get-data)
- [Transformer](#transformer)

---

#### Dependencies

[](#dependencies)

```

```

#### Installation

[](#installation)

First, pull in the package through Composer.

```
composer require mrjj/lvlgrid

```

And then include the service provider within `app/config/app.php`.

```
'providers' => [
    Mrjj\LvlGrid\LvlGridServiceProvider::class
];
```

#### Getting started

[](#getting-started)

First, create add a route to grid method

```
Route::get('countries/grid', '....Controller@grid');
```

Use a trait and add a required informations in your controller

```
use Mrjj\LvlGrid\LvlGrid;

class ..Controller extends Controller
{
    use LvlGrid

    protected $gridModel = \App\Models\Country::class;

    protected $threshold = 30;
    ...
}
```

Finally, add this @includes(lvlgrid::...) , lvlgrid component and fill your infos

```
@extend('default')

@section('scripts')

    @include('lvlgrid::scripts')

@stop

@section('content')
    lvlGrid

    @include('lvlgrid::grid')

    ..
```

#### Get Data

[](#get-data)

Add a gridData() method if you want to customize your query

```
public function gridData()
{
    return DB::table('users')
            ->leftJoin('posts', 'users.id', '=', 'posts.user_id')
}
```

> @return \\Illuminate\\Database\\Query\\Builder

#### Transformer

[](#transformer)

To transform your data you need add a gridTransformer() method and modify what you want

```
public function gridTransformer($data)
{
    foreach($data['items'] as $_grid) {
        $_grid->status = trans('form.status.'.$_grid->status);
    }
 }
```

> In this example I'm changing the status for a friendly name like 'Active' and 'Inactive'

If you need to modify the views, you can run:

```
php artisan vendor:publish --provider="Mrjj\LvlGrid\LvlGridServiceProvider"
```

The package views will now be located in the `app/resources/views/vendor/mrjj/lvlgrid`

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity67

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

Total

5

Last Release

3737d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5287262?v=4)[Marcos Junior](/maintainers/marcosrjjunior)[@marcosrjjunior](https://github.com/marcosrjjunior)

---

Top Contributors

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

---

Tags

datatablesgridjavascriptlaravelvuejslaravelgriddatagridtableVue.js

### Embed Badge

![Health badge](/badges/mrjj-lvlgrid/health.svg)

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

###  Alternatives

[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)[awes-io/table-builder

A component that allows creating responsive HTML tables or lists from data object

4726.1k4](/packages/awes-io-table-builder)[classiebit/eventmie

Run your own Events business with Eventmie Pro. Use it as event ticket selling website or event management platform on your own domain.

1882.0k](/packages/classiebit-eventmie)

PHPackages © 2026

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