PHPackages                             bewarhizirvan/laravel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bewarhizirvan/laravel-grid

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

bewarhizirvan/laravel-grid
==========================

A Grid Table Generator for Laravel

0.92(12mo ago)01231MITPHPPHP ^7.1|^7.4|^8.0|^8.1|^8.2|^8.3|^8.4CI failing

Since Oct 8Pushed 12mo ago1 watchersCompare

[ Source](https://github.com/bewarhizirvan/laravel-grid)[ Packagist](https://packagist.org/packages/bewarhizirvan/laravel-grid)[ Docs](https://github.com/bewarhizirvan/laravel-grid)[ RSS](/packages/bewarhizirvan-laravel-grid/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (5)Versions (4)Used By (1)

LaravelGrid
===========

[](#laravelgrid)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0209b3451bc1ec599034f00325d595a2616a4c72882a64f998237eb27b24c85c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626577617268697a697276616e2f6c61726176656c2d677269642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bewarhizirvan/laravel-grid)[![Total Downloads](https://camo.githubusercontent.com/29f8bad1fb9c588ca6195f1d6f42bbffeee40438233c6819fd13e2ae55c38b94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626577617268697a697276616e2f6c61726176656c2d677269642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bewarhizirvan/laravel-grid)[![Build Status](https://camo.githubusercontent.com/fd15aab5dc5bfa3d6c2c32e2aa72c895a7df7c07bfb6209a6981f2db45ed440f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f626577617268697a697276616e2f6c61726176656c2d677269642f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bewarhizirvan/laravel-grid)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.

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

[](#installation)

Via Composer

```
$ composer require bewarhizirvan/laravel-grid
```

Usage
-----

[](#usage)

For initiating new grid

```
$grid = new \BewarHizirvan\LaravelGrid\LaravelGrid($parameters);
```

$parameters must be an array and is optional, all keys are optional

> checkClass : Authorization Class must have can() function
> paginate : Rows per Page (default: 50)
> provider : Model
> dir : Grid direction { right, left (default) }
> label : Label at the top of Grid
> label\_extra : Extra Info below Label
> counterString : Counter String ( default: Showing records %s — %s of %s )
> headerCounter : Enable/Disable Header Counter ( default: true)
> footerCounter : Enable/Disable Footer Counter ( default: true)

### Functions

[](#functions)

```
$grid->setProvider($provider);
$grid->setLabelButton($label = 'New', $route = '');
$grid->orderBy($col,$dir);
$grid->setTotal($count);
$grid->setIPsortable($name);
$grid->addColumn($name = 'id', $label = 'id',$filter = false, $sortable = false, $ValueCalculator = null, $ValueFormatter = null);
$grid->addFilter($name = 'id', $label = 'id', $operator = 'like', $options = null);
$grid->addFilterSelect($name = 'id', $label = 'id', $options = []);
$grid->addActionColumn($col = 'id', $active = false, $inverse = false);
$grid->addActionButton($type = 'default', $title='', $route = '/', $conditions = [], $colid = null);
```

### When finished do bellow

[](#when-finished-do-bellow)

```
$grid = $grid->render();
```

> the above step will generate an html code

### Static Function

[](#static-function)

```
\BewarHizirvan\LaravelGrid\LaravelGrid::addContextMenu($value = '', $title = ['name'=>'','value'=>''], $rows = [], $right=false);
```

### Constants

[](#constants)

```
\BewarHizirvan\LaravelGrid\LaravelGrid::PARENT;
\BewarHizirvan\LaravelGrid\LaravelGrid::SUBMENU;
\BewarHizirvan\LaravelGrid\LaravelGrid::OK;
\BewarHizirvan\LaravelGrid\LaravelGrid::NOTOK;
\BewarHizirvan\LaravelGrid\LaravelGrid::ENABLED;
\BewarHizirvan\LaravelGrid\LaravelGrid::DISABLED;
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Credits
-------

[](#credits)

- [Bewar Hizirvan](https://github.com/bewarhizirvan)
- [All Contributors](../../contributors)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance50

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

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

Total

3

Last Release

363d ago

PHP version history (3 changes)0.9PHP ^7.1.3

0.91PHP ^7.1|^7.4|^8.0|^8.1.0

0.92PHP ^7.1|^7.4|^8.0|^8.1|^8.2|^8.3|^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/d63271012b2af3e25a5ec79b8fb257e46f0cad30f77728bf68273b77ecee13e4?d=identicon)[bewarhizirvan](/maintainers/bewarhizirvan)

---

Top Contributors

[![bewarhizirvan](https://avatars.githubusercontent.com/u/61181832?v=4)](https://github.com/bewarhizirvan "bewarhizirvan (28 commits)")

---

Tags

laravelLaravelGrid

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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