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

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

farram/yii2-editable-widget
===========================

X-Editable widget for Yii2.

1.1.1(8y ago)02BSD-3-ClausePHP

Since Apr 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/farram/yii2-editable-widget)[ Packagist](https://packagist.org/packages/farram/yii2-editable-widget)[ Docs](http://yiiwheels.com/extension/editable-widget)[ RSS](/packages/farram-yii2-editable-widget/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (6)Versions (10)Used By (0)

X-Editable Widget for Yii2
==========================

[](#x-editable-widget-for-yii2)

[![Latest Version](https://camo.githubusercontent.com/ae4eb2d05d36c857286f334afb62948b1a78fd216c12d58fb65dfb482bf2b1c8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f32616d69676f732f796969322d6564697461626c652d7769646765742e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://github.com/2amigos/yii2-editable-widget/tags)[![Software License](https://camo.githubusercontent.com/b60331a2084501dc07cf6d6964c0da58dd005d89c45cf3b28b4b22b60f5ec00f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/41e7e80b11115c5b16b9b1c3707c180bfb965c27797c5469ee152b5e8427fe55/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f32616d69676f732f796969322d6564697461626c652d7769646765742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/2amigos/yii2-editable-widget)[![Coverage Status](https://camo.githubusercontent.com/8b30d613d7bf5acfb361a189b53c215de4572bb5b0352d4371a562e9dc820146/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f32616d69676f732f796969322d6564697461626c652d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/2amigos/yii2-editable-widget/code-structure)[![Quality Score](https://camo.githubusercontent.com/0549de502e35abd57bca5f03b15c7122b7e85ca7f8557b9df69714cb61eda6d9/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f32616d69676f732f796969322d6564697461626c652d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/2amigos/yii2-editable-widget)[![Total Downloads](https://camo.githubusercontent.com/e8f97b35edb694abb739318c9dbed1ae2606904c4cc3b11201be242cba7bd54e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f32616d69676f732f796969322d6564697461626c652d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/2amigos/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).

Important Note
--------------

[](#important-note)

We decided to port only the Bootstrap 3 capabilities of [X-Editable Plugin](http://vitalets.github.io/x-editable/index.html) due to the requirements of our projects. We have done quite a lot of work:

- The original library has been modified to port it to Yii2. Plugins that we thought didn't belong to the core, we extracted them and implemented them as separated external input types (address, combodate, datepicker, datetimepicker, select2 and wysihtml5 plugins). We thought that separating external types will help everybody to isolate problems and be able to improve the library much better.
- Plugins have been all updated to their latest versions
- Fixed datepicker and datetimepicker types to work with Bootstrap 3
- Refactored widget code to make it easier to understand
- We have not included **EditableColumn**, **EditableListView**, or **EditableDetailView** because we believe they correspond to a different package. They will be developed independently.

So, if you have issues to fix, please remember, **THIS IS NOT** an exact copy of X-Editable, this is a Bootstrap 3 enhanced X-Editable plugin ported to Yii2.

We welcome everybody to improve this library with their amazing Pull Requests :) and we hope that this will increase the productivity of your Yii2 experience.

So keep this in mind:

- Widget is based on [X-Editable](http://vitalets.github.io/x-editable/) not on [X-Editable for Yii](http://x-editable.demopage.ru/)
- It does not work with JQuery UI or as plain JQuery, just Bootstrap and latest version only (not 2.3.2 sorry)
- If you wish to help improve the library do it, but do not update the library thinking this is the same as X-Editable source, it has been modified.
- The supported types are:
    - text
    - textarea
    - select
    - date
    - datetime
    - combodate
    - html5 types
    - checklist
    - wysihtml5
    - select2
    - No typeaheadJs - ready for the challenge?

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

[](#installation)

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

Either run

```
composer require 2amigos/yii2-editable-widget:~1.0

```

or add

```
"2amigos/yii2-editable-widget" : "~1.0"
```

to the require section of your application's `composer.json` file.

Usage
-----

[](#usage)

There is an amazing site made by [Vitaliy Potapov](https://github.com/vitalets) which shows how to configure the widget. We are not going to explain how to use each one of the again and we encourage you to visit [the documentation section of the plugin's site](http://vitalets.github.io/x-editable/docs.html)

```

```

Testing
-------

[](#testing)

To test the extension, is better to clone this repository on your computer. After, go to the extensions folder and do the following (assuming you have `composer` installed on your computer):

```
$ composer install --no-interaction --prefer-source --dev
```

Once all required libraries are installed then do:

```
$ vendor/bin/phpunit
```

Further Information
-------------------

[](#further-information)

Please, check the [X-Editable Plugin](http://vitalets.github.io/x-editable/index.html) documentation for further information about its configuration options.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Antonio Ramirez](https://github.com/tonydspaniard)
- [All Contributors](../../contributors)

License
-------

[](#license)

The BSD License (BSD). Please see [License File](LICENSE.md) for more information.

> [![2amigOS!](https://camo.githubusercontent.com/9fd8f1de41dc23003bb2a54034cb6658dde5be97092e195a62d629d0d7fa7f6c/687474703a2f2f7777772e67726176617461722e636f6d2f6176617461722f35353336333339346437323934356666376564333132353536656330343165302e706e67)](http://www.2amigos.us)
> *Custom Software | Web &amp; Mobile Software Development*
> [www.2amigos.us](http://www.2amigos.us)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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

Recently: every ~222 days

Total

9

Last Release

3208d ago

Major Versions

0.1.4 → 1.0.02017-07-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/61d1c691fa134767f7c57cf48e7998772ef70ca327c1c3dba175d9e8f9d5b09b?d=identicon)[farram](/maintainers/farram)

---

Top Contributors

[![SDKiller](https://avatars.githubusercontent.com/u/2150916?v=4)](https://github.com/SDKiller "SDKiller (6 commits)")[![lav45](https://avatars.githubusercontent.com/u/675367?v=4)](https://github.com/lav45 "lav45 (3 commits)")[![mata-man](https://avatars.githubusercontent.com/u/2185864?v=4)](https://github.com/mata-man "mata-man (3 commits)")[![marciocamello](https://avatars.githubusercontent.com/u/4071580?v=4)](https://github.com/marciocamello "marciocamello (2 commits)")[![nirvana-msu](https://avatars.githubusercontent.com/u/5787387?v=4)](https://github.com/nirvana-msu "nirvana-msu (1 commits)")[![dzona](https://avatars.githubusercontent.com/u/1159689?v=4)](https://github.com/dzona "dzona (1 commits)")[![sebathi](https://avatars.githubusercontent.com/u/1434034?v=4)](https://github.com/sebathi "sebathi (1 commits)")[![farram](https://avatars.githubusercontent.com/u/4483267?v=4)](https://github.com/farram "farram (1 commits)")[![ifcanduela](https://avatars.githubusercontent.com/u/1359230?v=4)](https://github.com/ifcanduela "ifcanduela (1 commits)")[![mg-code](https://avatars.githubusercontent.com/u/1376496?v=4)](https://github.com/mg-code "mg-code (1 commits)")

---

Tags

yii2extensionwidgetyiiyii 22amigosx-editable

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

PHPackages © 2026

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