PHPackages                             martynchuk/yii2-editable-cell - 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. martynchuk/yii2-editable-cell

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

martynchuk/yii2-editable-cell
=============================

Yii2 GridView Editable Cell - editable cells in GridView

v1.1.0(6mo ago)07MITJavaScriptPHP &gt;=7.1.0

Since Nov 10Pushed 5mo agoCompare

[ Source](https://github.com/martynchuk/yii2-editable-cell)[ Packagist](https://packagist.org/packages/martynchuk/yii2-editable-cell)[ Docs](https://github.com/martynchuk/yii2-editable-cell)[ RSS](/packages/martynchuk-yii2-editable-cell/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

yii2-editable-cell
==================

[](#yii2-editable-cell)

Yii2 GridView Editable Cell - editable cells in GridView for Yii2.

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

[](#installation)

Install the extension via Composer:

```
composer require martynchuk/yii2-editable-cell
```

or add to `composer.json`:

```
{
    "require": {
        "martynchuk/yii2-editable-cell": "*"
    }
}
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

In your GridView use `EditableColumn` instead of a regular column:

```
use martynchuk\editablecell\EditableColumn;

echo GridView::widget([
    'dataProvider' => $dataProvider,
    'columns' => [
        'id',
        [
            'class' => EditableColumn::class,
            'attribute' => 'name',
            'editableUrl' => ['site/editable'],
        ],
        'email',
    ],
]);
```

### Configuration

[](#configuration)

```
[
    'class' => EditableColumn::class,
    'attribute' => 'status',
    'editableType' => 'select', // text, textarea, select, date, number
    'editableUrl' => ['user/update-status'],
    'editableOptions' => [
        'items' => [
            ['value' => 1, 'label' => 'Active'],
            ['value' => 0, 'label' => 'Inactive'],
        ],
    ],
    'primaryKey' => 'id',
    'pjaxContainer' => '#grid-pjax', // Pjax container selector to reload after save
    'afterSave' => 'onStatusUpdated', // JavaScript callback
    'onError' => 'onUpdateError', // JavaScript callback
]
```

### Edit Types

[](#edit-types)

- **text** - text input field (default)
- **textarea** - multiline text field
- **select** - dropdown list (requires `editableOptions['items']`)
- **date** - date picker field
- **number** - number input field

### Server-side Handling

[](#server-side-handling)

Use the built-in helper class for easy processing:

```
use martynchuk\editablecell\EditableHelper;

public function actionEditable()
{
    return EditableHelper::process(Articles::class);
}
```

Project Structure
-----------------

[](#project-structure)

```
yii2-editable-cell/
├── assets/
│   ├── css/
│   │   └── editable-cell.css
│   └── js/
│       └── editable-cell.js
├── src/
│   ├── Bootstrap.php
│   ├── EditableCellAsset.php
│   ├── EditableColumn.php
│   └── EditableHelper.php
├── tests/
├── composer.json
├── LICENSE
└── README.md

```

License
-------

[](#license)

MIT License

Author
------

[](#author)

Yurii Martynchuk

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance71

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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

2

Last Release

181d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

yii2extensioneditablegridviewCell

### Embed Badge

![Health badge](/badges/martynchuk-yii2-editable-cell/health.svg)

```
[![Health](https://phpackages.com/badges/martynchuk-yii2-editable-cell/health.svg)](https://phpackages.com/packages/martynchuk-yii2-editable-cell)
```

###  Alternatives

[richardfan1126/yii2-sortable-gridview

Sortable GridView for Yii2

29189.3k](/packages/richardfan1126-yii2-sortable-gridview)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[sjaakp/yii2-alphapager

Page data on initial character in Yii2.

184.4k](/packages/sjaakp-yii2-alphapager)

PHPackages © 2026

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