PHPackages                             webmachine/jqgrid - 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. webmachine/jqgrid

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

webmachine/jqgrid
=================

Jqgrid for Laravel

0477PHP

Since Apr 9Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/webmachineltda/jqgrid)[ Packagist](https://packagist.org/packages/webmachine/jqgrid)[ RSS](/packages/webmachine-jqgrid/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Jqgrid for Laravel
==================

[](#jqgrid-for-laravel)

Install
-------

[](#install)

Via Composer

```
$ composer require webmachine/jqgrid
```

Next, you must install the service provider and facade alias:

```
// config/app.php
'providers' => [
    ...
    Webmachine\Jqgrid\JqgridServiceProvider::class,
];

...

'aliases' => [
    ...
    'Jqgrid' => Webmachine\Jqgrid\JqgridFacade::class,
];
```

Publish

```
$ php artisan vendor:publish --provider="Webmachine\Jqgrid\JqgridServiceProvider"
```

Usage
-----

[](#usage)

In your Controller

```
...
use Webmachine\Jqgrid\JqgridFacade as Jqgrid;

class FooController extends Controller {

    /**
     * @see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:colmodel_options ColModel API.
     */
    const jqgrid_colmodel = [
        [
            'label' => 'Id',
            'name' => 'id',
            'hidden' => true
        ],
        [
            'label' => 'Number',
            'name' => 'number',
            'searchoptions' => [
                'sopt' => ['bw']
            ]
        ],
        [
            'label' => 'Name',
            'name' => 'name',
        ],
        [
            'label' => 'Provider',
            'name' => 'provider.name', // relation.fieldname
            'relation' => 'FooModel.provider' // ModelName.relation (this relation must exist in your model)
        ]
    ];
    ...
    public function index() {
        ...
        Jqgrid::add_js_colmodel('foo_table', self::jqgrid_colmodel); // add colmodel columns to render in view
        return view('foo.index');
        ...
    }
    ...
    /**
     * Generate json response for jqgrid
     * @return string
     */
    public function datagrid() {
        Jqgrid::init('foo_table', self::jqgrid_colmodel, self::jqgrid_format());
        Jqgrid::get_query()->whereIn('user_id', auth()->user()->id); // add extra query conditions
        return Jqgrid::datagrid();
    }
    ...
    /**
     * Return closure function to format jqgrid columns (optional)
     * @return function
     */
    private static function jqgrid_format() {
        return function ($column, $value) {
            $result = $value;
            if ($column == 'name') {
                $result = ucfirst($value);
            }
            return $result;
        };
    }
}
```

In your view javascript

```
// foo/index.blade.php
...

{!! Jqgrid::scripts() !!}
...
$('#jqgrid').jqGrid({
    url: '{{ url("foo/datagrid") }}',
    colModel: {!! Jqgrid::js_colmodel() !!}
    ...
});
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance56

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 94.7% 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://www.gravatar.com/avatar/71db86d24b04a18c9016c8b517c9021df438cd3ad4a704bd5a5d2131ca58c1fc?d=identicon)[webmachine](/maintainers/webmachine)

---

Top Contributors

[![caacuna](https://avatars.githubusercontent.com/u/8000557?v=4)](https://github.com/caacuna "caacuna (18 commits)")[![jaraj91](https://avatars.githubusercontent.com/u/9612713?v=4)](https://github.com/jaraj91 "jaraj91 (1 commits)")

### Embed Badge

![Health badge](/badges/webmachine-jqgrid/health.svg)

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

###  Alternatives

[activecampaign/module-integration

ActiveCampaign extension for Magento 2.3 and 2.4

1161.9k](/packages/activecampaign-module-integration)

PHPackages © 2026

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