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

ActiveYii2-extension

yii2mod/yii2-editable
=====================

Yii2 editable field extension

1.5(8y ago)54395.1k↓20.6%14[5 issues](https://github.com/yii2mod/yii2-editable/issues)11MITPHP

Since Jun 17Pushed 6y ago8 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (11)Used By (11)

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

Yii2 Editable Widget
====================

[](#yii2-editable-widget)

Renders a [X-Editable Input](http://vitalets.github.io/x-editable/index.html) allowing to use the amazing inline capabilities of [X-Editable Plugin](http://vitalets.github.io/x-editable/index.html).

[![Latest Stable Version](https://camo.githubusercontent.com/e5fbdb213dabeb327e2c7fbc879aaa18296d7b5de8341b7fb30c1f55eff9af82/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d6564697461626c652f762f737461626c65)](https://packagist.org/packages/yii2mod/yii2-editable) [![Total Downloads](https://camo.githubusercontent.com/60c7910d14a914ad9783e7ad459f5b47bfa8ed6739d1de12c58c1ceff7362c3f/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d6564697461626c652f646f776e6c6f616473)](https://packagist.org/packages/yii2mod/yii2-editable) [![License](https://camo.githubusercontent.com/07911c6aa2a89c43ceb683b068b3e9b76824ae9ede0fd95b42a4ef3aedc4026e/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d6564697461626c652f6c6963656e7365)](https://packagist.org/packages/yii2mod/yii2-editable)[![Build Status](https://camo.githubusercontent.com/f61ca71cf070e4d77b31d7576c9111f402100047d474e7d9b73190be1516555c/68747470733a2f2f7472617669732d63692e6f72672f796969326d6f642f796969322d6564697461626c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yii2mod/yii2-editable)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist yii2mod/yii2-editable "*"

```

or add

```
"yii2mod/yii2-editable": "*"

```

to the require section of your composer.json.

Usage Editable column
---------------------

[](#usage-editable-column)

1. In your gridview columns section

**Text column:**

```
 [
    'class' => EditableColumn::class,
    'attribute' => 'username',
    'url' => ['change-username'],
 ],
```

**Select column:**

```
[
    'class' => EditableColumn::class,
    'attribute' => 'status',
    'url' => ['change-username'],
    'type' => 'select',
    'editableOptions' => function ($model) {
        return [
            'source' => [1 => 'Active', 2 => 'Deleted'],
            'value' => $model->status,
        ];
    },
],
```

> Allowed column types: text, select, address, combodate, date, datetime

2. And add to your controller

```
public function actions()
{
    return [
        'change-username' => [
            'class' => EditableAction::class,
            'modelClass' => UserModel::class,
        ],
    ];
}
```

Usage Editable widget
---------------------

[](#usage-editable-widget)

1. As a widget with a model

```
\yii2mod\editable\Editable::widget([
    'model' => $model,
    'attribute' => 'firstName',
    'url' => '/profile/update',
]);
```

2. With ActiveForm

```
echo $form->field($model, "firstName")->widget(\yii2mod\editable\Editable::class, [
    'url' => '/profile/update',
    'mode' => 'popup',
]);
```

Support us
----------

[](#support-us)

Does your business depend on our contributions? Reach out and support us on [Patreon](https://www.patreon.com/yii2mod). All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~104 days

Recently: every ~140 days

Total

10

Last Release

3045d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a53a15e1548ce60ee92591e71492a39eaaecfc88eaa1a9d7f353d5c910381de?d=identicon)[disem](/maintainers/disem)

---

Top Contributors

[![dmitry-semenov](https://avatars.githubusercontent.com/u/17027799?v=4)](https://github.com/dmitry-semenov "dmitry-semenov (3 commits)")[![AidasK](https://avatars.githubusercontent.com/u/2088484?v=4)](https://github.com/AidasK "AidasK (1 commits)")[![lichunqiang](https://avatars.githubusercontent.com/u/2433916?v=4)](https://github.com/lichunqiang "lichunqiang (1 commits)")[![sedrak1987](https://avatars.githubusercontent.com/u/13012929?v=4)](https://github.com/sedrak1987 "sedrak1987 (1 commits)")

---

Tags

yii2yii2-editableyii2-editable-columnyii2-editable-widgetyii2-extensionyii2yii2 editableyii2 editable columnyii2 editable field

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)

PHPackages © 2026

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