PHPackages                             hiddenpathz/yii2-quick-edit-accordion - 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. hiddenpathz/yii2-quick-edit-accordion

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

hiddenpathz/yii2-quick-edit-accordion
=====================================

An asynchronous widget for quick attribute editing for Yii2

0.0.1(2y ago)00MITPHPPHP &gt;=7.4

Since Mar 4Pushed 2y ago1 watchersCompare

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

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

QuickEditAccordion Widget
=========================

[](#quickeditaccordion-widget)

Description
-----------

[](#description)

`QuickEditAccordion` is a Yii2 widget designed to display data in an accordion layout with inline editing capabilities. It supports both table and list views and uses AJAX for asynchronous data updates.

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

[](#installation)

To install the `QuickEditAccordion` widget, add it to your Yii2 project by including it in your composer.json file or cloning the repository into your project directory.

Configuration
-------------

[](#configuration)

The widget provides several customizable properties:

- `type`: Display type (`'table'` or `'list'`). Default is `'table'`.
- `action`: URL to which form data will be sent for saving.
- `items`: Array of items to be displayed in the accordion.
- Additional options for customizing appearance and behavior: `options`, `accordionOptions`, `listStyle`, `labelStyle`, `valueStyle`.

Example Usage
-------------

[](#example-usage)

```
echo QuickEditAccordion::widget([
    'type' => 'list',
    'action' => Url::to(['controller/action']),
    'items' => [
        // Your items array
    ],
]);
```

JavaScript Functionality
------------------------

[](#javascript-functionality)

The widget includes JavaScript code to enable inline editing functionality. Clicking an element marked with the `.editable` class turns it into a text field, allowing the user to modify its value. The changes are saved asynchronously via AJAX.

### Example of a Controller to Handle the AJAX Request

[](#example-of-a-controller-to-handle-the-ajax-request)

```
public function actionSave() {
    Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
    $index = Yii::$app->request->post('index');
    $attribute = Yii::$app->request->post('attribute');
    $newValue = Yii::$app->request->post('newValue');

    // Logic for processing changes saving

    return ['success' => true, 'newValue' => $newValue];
}
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

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

Unknown

Total

1

Last Release

800d ago

### Community

Maintainers

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

---

Tags

yii2extensionwidgetyiiyii 2editaccordionquickhiddenpathz

### Embed Badge

![Health badge](/badges/hiddenpathz-yii2-quick-edit-accordion/health.svg)

```
[![Health](https://phpackages.com/badges/hiddenpathz-yii2-quick-edit-accordion/health.svg)](https://phpackages.com/packages/hiddenpathz-yii2-quick-edit-accordion)
```

PHPackages © 2026

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