PHPackages                             hsegura/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hsegura/yii2-editable

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

hsegura/yii2-editable
=====================

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

v1.7.9(6y ago)060BSD-3-ClausePHP

Since Jul 31Pushed 6y agoCompare

[ Source](https://github.com/hsegura/yii2-editable)[ Packagist](https://packagist.org/packages/hsegura/yii2-editable)[ Docs](https://github.com/kartik-v/yii2-editable)[ RSS](/packages/hsegura-yii2-editable/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (17)Used By (0)

 [ ![Krajee Logo](https://camo.githubusercontent.com/4addfbb3869c3fc7d79befea4f06d9cf3655a686fb503df0da1d725859cfdef9/687474703a2f2f6b617274696b2d762e6769746875622e696f2f626f6f7473747261702d66696c65696e7075742d73616d706c65732f73616d706c65732f6b72616a65652d6c6f676f2d622e706e67) ](http://demos.krajee.com "Krajee Demos")
 yii2-editable ---

 [ ![Donate](https://camo.githubusercontent.com/4af77d425ca202e55ab3d711b438e238ded194735bc345a019ac060e03e26227/687474703a2f2f6b617274696b2d762e6769746875622e696f2f626f6f7473747261702d66696c65696e7075742d73616d706c65732f73616d706c65732f646f6e6174652e706e67) ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DTP3NZQ6G2AYU "Donate via Paypal")
=================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#------------------------yii2-editable--------------------)

[![Latest Stable Version](https://camo.githubusercontent.com/0d431841607398242c8a4773be5ee2b7bdbd37447bcf487b95229af098c3b6bf/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d6564697461626c652f762f737461626c65)](https://packagist.org/packages/kartik-v/yii2-editable)[![Unstable Version](https://camo.githubusercontent.com/5ae717d194f34ac798e1edcb06bb47cbefcde463eeac97ad5979788c6cba6f08/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d6b72616a65652d626173652f762f756e737461626c65)](https://packagist.org/packages/kartik-v/yii2-editable)[![License](https://camo.githubusercontent.com/29290b5c91d99b9c396178909be7cf9aa5e500311070922b9bcd928d3ddc6870/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d6564697461626c652f6c6963656e7365)](https://packagist.org/packages/kartik-v/yii2-editable)[![Total Downloads](https://camo.githubusercontent.com/4fb0bf47194310c0094a574ee6976b59e9f51cd695cda2190cf11f8da45810a1/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d6564697461626c652f646f776e6c6f616473)](https://packagist.org/packages/kartik-v/yii2-editable)[![Monthly Downloads](https://camo.githubusercontent.com/90bfe9d4767bf606b2e5d61720da5f073653dcb0b4814b66c860e36f2263817a/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d6564697461626c652f642f6d6f6e74686c79)](https://packagist.org/packages/kartik-v/yii2-editable)[![Daily Downloads](https://camo.githubusercontent.com/9b4636240abc95101b2495b4764b896229cbb6d3094d05721f95445dafa31f07/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d6564697461626c652f642f6461696c79)](https://packagist.org/packages/kartik-v/yii2-editable)

Easily set any displayed content as editable in Yii Framework 2.0. This is an enhanced editable widget for Yii 2.0 that allows easy editing of displayed data, using inputs, widgets and more with numerous configuration possibilities. The extension uses the enhanced [yii2-popover-x](http://demos.krajee.com/popover-x) extension as a popover modal for editing. With release v1.7.3, this extension also allows you to render the editable content inline and offers advanced inline templates for configuration. This extension does not use any external jQuery plugin like X-Editable, instead it uses its own lean and extensible jQuery editable plugin - that elaborately reuses functionality available within Yii Framework 2.0.

> Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-editable/blob/master/CHANGE.md) for latest release details.

Features
--------

[](#features)

1. Set any readable markup on your view, DetailView, or GridView to be editable. Refer the [EditableColumn](http://demos.krajee.com/grid#editable-column) details in kartik\\grid\\GridView for using an editable column in your grid.
2. Provides two display formats for setting up your editable content .
    - **Link**: Convert the editable content as a clickable link for popover.
    - **Button**: Do not convert the editable content to a link, but rather display a button beside it for editing content.
3. Ability to render the content as a POPOVER or INLINE.
4. Advanced configurable inline templates for rendering complex content.
5. Uses Yii 2.0 ActiveForm for editing content. Hence all features of Yii ActiveForm, including model validation rules are available.
6. For editing the content, you can configure it to use any of the HTML inputs, or widgets available from **kartik-v/yii2-widgets** or other input widgets from . In addition, you can also use HTML 5 inputs or any custom input widget to edit your content.
7. Entirely control the way the form content is displayed in the popover. By default, the widget displays the input to be edited. In addition, you can place more form fields or markup before and after this default input.
8. Uses AJAX based form submission to process quick editing of data and provide a seamless user experience.
9. Uses advanced features of the [yii2-popover-x extension](http://demos.krajee.com/popover-x), to control display formats for your editable popover form. This uses the enhanced [bootstrap-popover-x](http://plugins.krajee.com/popover-x) jQuery plugin by Krajee.
10. Easily extend the default editable field by adding more form fields for editing before or after the generated editable input.
11. Configure your own display value irrespective of the value stored internally.
12. Configurable css styles and labels for rendering editable content according to your application or theme.
13. Ability to render and reinitialize automatically the widget via Pjax.

> Note: Check the [composer.json](https://github.com/kartik-v/yii2-money/blob/master/composer.json) for this extension's requirements and dependencies. Read this [web tip /wiki](http://webtips.krajee.com/setting-composer-minimum-stability-application/) on setting the `minimum-stability` settings for your application's composer.json.

Demo
----

[](#demo)

You can see detailed [documentation and examples](http://demos.krajee.com/editable) on usage of the extension.

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

[](#installation)

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

> Note: Check the [composer.json](https://github.com/kartik-v/yii2-editable/blob/master/composer.json) for this extension's requirements and dependencies. Read this [web tip /wiki](http://webtips.krajee.com/setting-composer-minimum-stability-application/) on setting the `minimum-stability` settings for your application's composer.json.

Either run

```
$ php composer.phar require kartik-v/yii2-editable "@dev"

```

or add

```
"kartik-v/yii2-editable": "@dev"

```

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

Usage
-----

[](#usage)

### Editable

[](#editable)

```
use kartik\editable\Editable;
echo Editable::widget([
    'model' => $model,
    'attribute' => 'rating',
    'type' => 'primary',
    'size'=> 'lg',
    'inputType' => Editable::INPUT_RATING,
    'editableValueOptions' => ['class' => 'text-success h3']
]);
```

License
-------

[](#license)

**yii2-editable** is released under the BSD-3-Clause License. See the bundled `LICENSE.md` for details.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 73.4% 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 ~118 days

Recently: every ~222 days

Total

16

Last Release

2520d ago

### Community

Maintainers

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

---

Top Contributors

[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (124 commits)")[![Wybrenb](https://avatars.githubusercontent.com/u/3756743?v=4)](https://github.com/Wybrenb "Wybrenb (17 commits)")[![hernanicajado](https://avatars.githubusercontent.com/u/13469358?v=4)](https://github.com/hernanicajado "hernanicajado (3 commits)")[![hsegura](https://avatars.githubusercontent.com/u/13482900?v=4)](https://github.com/hsegura "hsegura (2 commits)")[![gael-wogenstahl](https://avatars.githubusercontent.com/u/5624541?v=4)](https://github.com/gael-wogenstahl "gael-wogenstahl (2 commits)")[![BoBRoID](https://avatars.githubusercontent.com/u/4145381?v=4)](https://github.com/BoBRoID "BoBRoID (2 commits)")[![ToRvaLDz](https://avatars.githubusercontent.com/u/1643636?v=4)](https://github.com/ToRvaLDz "ToRvaLDz (2 commits)")[![saitux](https://avatars.githubusercontent.com/u/4258182?v=4)](https://github.com/saitux "saitux (2 commits)")[![Edofre](https://avatars.githubusercontent.com/u/710429?v=4)](https://github.com/Edofre "Edofre (2 commits)")[![TonisOrmisson](https://avatars.githubusercontent.com/u/6357451?v=4)](https://github.com/TonisOrmisson "TonisOrmisson (1 commits)")[![uldisn](https://avatars.githubusercontent.com/u/3525344?v=4)](https://github.com/uldisn "uldisn (1 commits)")[![xepozz](https://avatars.githubusercontent.com/u/6815714?v=4)](https://github.com/xepozz "xepozz (1 commits)")[![aoopvn](https://avatars.githubusercontent.com/u/1290320?v=4)](https://github.com/aoopvn "aoopvn (1 commits)")[![XzAeRo](https://avatars.githubusercontent.com/u/1656037?v=4)](https://github.com/XzAeRo "XzAeRo (1 commits)")[![djbuch](https://avatars.githubusercontent.com/u/5637724?v=4)](https://github.com/djbuch "djbuch (1 commits)")[![giannisdag](https://avatars.githubusercontent.com/u/2151129?v=4)](https://github.com/giannisdag "giannisdag (1 commits)")[![karataserkan](https://avatars.githubusercontent.com/u/7448716?v=4)](https://github.com/karataserkan "karataserkan (1 commits)")[![KasperFranz](https://avatars.githubusercontent.com/u/191405?v=4)](https://github.com/KasperFranz "KasperFranz (1 commits)")[![lukascernydis](https://avatars.githubusercontent.com/u/3111717?v=4)](https://github.com/lukascernydis "lukascernydis (1 commits)")[![mortezakarimi](https://avatars.githubusercontent.com/u/4004087?v=4)](https://github.com/mortezakarimi "mortezakarimi (1 commits)")

---

Tags

jquerywidgetbootstrapinputeditablepopoverpopover-x

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-editable

An enhanced editable widget for Yii 2.0 that allows easy editing of displayed data with numerous configuration possibilities.

1163.2M59](/packages/kartik-v-yii2-editable)[kartik-v/bootstrap-popover-x

Bootstrap Popover Extended - Popover with modal behavior, styling enhancements and more.

1143.4M3](/packages/kartik-v-bootstrap-popover-x)[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-switchinput

A Yii2 wrapper widget for the Bootstrap Switch plugin to use checkboxes &amp; radios as toggle switchinputes (sub repo split from yii2-widgets)

384.4M13](/packages/kartik-v-yii2-widget-switchinput)[kartik-v/yii2-widget-touchspin

A Yii2 wrapper widget for the Bootstrap Switch plugin to use checkboxes &amp; radios as toggle touchspines (sub repo split from yii2-widgets)

184.1M6](/packages/kartik-v-yii2-widget-touchspin)[kartik-v/yii2-sortable-input

Sortable input widget based on yii2-sortable extension.

24660.4k2](/packages/kartik-v-yii2-sortable-input)

PHPackages © 2026

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