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

ActiveYii2-extension

indifferend/yii2-editable
=========================

Yii2 editable field extension

2.1(4y ago)061MITPHP

Since Jun 2Pushed 4y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (3)Used By (1)

 [ ![](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/1de185ec0af728d569445d9f923320cac01fabc806f660c0619eeddc5a13b672/68747470733a2f2f706f7365722e707567782e6f72672f696e646966666572656e642f796969322d6564697461626c652f762f737461626c65)](https://packagist.org/packages/indifferend/yii2-editable) [![Total Downloads](https://camo.githubusercontent.com/49dc2a84f144899b9d85fe21aa1f27fd99482d1ad5ca809679742b83cd3547dd/68747470733a2f2f706f7365722e707567782e6f72672f696e646966666572656e642f796969322d6564697461626c652f646f776e6c6f616473)](https://packagist.org/packages/indifferend/yii2-editable) [![License](https://camo.githubusercontent.com/be60eb343715f4c557a285b9a9c44debe98261fb9b5c739853b1427167977c68/68747470733a2f2f706f7365722e707567782e6f72672f696e646966666572656e642f796969322d6564697461626c652f6c6963656e7365)](https://packagist.org/packages/indifferend/yii2-editable)[![Build Status](https://camo.githubusercontent.com/3dca5bc38d1cc7ee81db0158d3347145ae134d44f538d4f9f07fce5d715070d6/68747470733a2f2f7472617669732d63692e6f72672f696e646966666572656e642f796969322d6564697461626c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/indifferend/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 indifferend/yii2-editable "*"

```

or add

```
"indifferend/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

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

2. With ActiveForm

```
echo $form->field($model, "firstName")->widget(\indifferend\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/indifferend). All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

Total

2

Last Release

1805d ago

### Community

Maintainers

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

---

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 field

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[yii2mod/yii2-editable

Yii2 editable field extension

54395.1k11](/packages/yii2mod-yii2-editable)[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)
