PHPackages                             mmonem/yii2-gridview2 - 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. mmonem/yii2-gridview2

ActiveYii2-extension

mmonem/yii2-gridview2
=====================

A wrapper for the original Yii2 GridView with local model Create and Update features

0.0.3(8y ago)139BSD-3-ClausePHP

Since Dec 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mmonem/yii2-gridview2)[ Packagist](https://packagist.org/packages/mmonem/yii2-gridview2)[ Docs](https://github.com/mmonem/yii2-gridview2)[ RSS](/packages/mmonem-yii2-gridview2/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

yii2-gridview2
==============

[](#yii2-gridview2)

yii2-gridview2 is a wrapper for the original Yii2 GridView with local model Create and Update features

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

To install, either run

```
$ php composer.phar require mmonem/yii2-gridview2 "@dev"

```

or add

```
"mmonem/yii2-gridview2": "@dev"

```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

1. In your view add the original Yii GridView as usual
2. Change the `use` directive from `yii\grid\GridView` to `mmonem\yii2gridview2\GridView;`
3. Add `editColumns` and `createUrl` parameters to the configuration array of the GridView as the following:

    ```
    'editColumns' => [
        'column_1',
         ['attr' =>'column_2', 'select' => [1 => 'Name 1', 2 => 'Name 2']],
        'column_3',
    ],
    'createUrl' => Url::to(['some-controller/createajax']),
    ```
4. In one of your controllers add the the action to be used for adding models using AJAX. In the following example I make an action called `createajax` for this. You need also to specify the ActiveRecord model class name. Don't forget to fix permissions for that new action.

    ```
        public function actions()
        {
            return [
                'createajax' => [
                    'class' => 'mmonem\yii2gridview2\CreateAction',
                    'modelClass' => SomeModel::className()
                ],
            ];
        }
    ```

Change Log
----------

[](#change-log)

- **v0.0.2** on 2017-12-11
    - Initial pre-alpha version

License
-------

[](#license)

**yii2-gridview2** is released under the BSD 3-Clause License. Refer to `LICENSE.md` for details.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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

Total

3

Last Release

3072d ago

### Community

Maintainers

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

---

Top Contributors

[![mmonem](https://avatars.githubusercontent.com/u/7804887?v=4)](https://github.com/mmonem "mmonem (10 commits)")

---

Tags

pluginjqueryyii2extensionwidgetformgridview

### Embed Badge

![Health badge](/badges/mmonem-yii2-gridview2/health.svg)

```
[![Health](https://phpackages.com/badges/mmonem-yii2-gridview2/health.svg)](https://phpackages.com/packages/mmonem-yii2-gridview2)
```

###  Alternatives

[kartik-v/yii2-widget-select2

Enhanced Yii2 wrapper for the Select2 jQuery plugin (sub repo split from yii2-widgets).

3279.7M191](/packages/kartik-v-yii2-widget-select2)[kartik-v/yii2-widget-fileinput

An enhanced FileInput widget for Bootstrap 3.x, 4.x &amp; 5.x with file preview, multiple selection, and more features (sub repo split from yii2-widgets)

2286.8M95](/packages/kartik-v-yii2-widget-fileinput)[kartik-v/yii2-widget-datetimepicker

Enhanced Yii2 wrapper for the bootstrap datetimepicker plugin (sub repo split from yii2-widgets)

1036.5M47](/packages/kartik-v-yii2-widget-datetimepicker)[kartik-v/yii2-widget-typeahead

Enhanced Yii2 wrapper for the Twitter Typeahead plugin (sub repo split from yii2-widgets).

454.8M9](/packages/kartik-v-yii2-widget-typeahead)[kartik-v/yii2-widget-rating

A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)

444.1M8](/packages/kartik-v-yii2-widget-rating)[kartik-v/yii2-widget-timepicker

Enhanced Yii2 wrapper for the bootstrap timepicker plugin (sub repo split from yii2-widgets)

404.9M14](/packages/kartik-v-yii2-widget-timepicker)

PHPackages © 2026

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