PHPackages                             defyma/yii2-treetable - 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. defyma/yii2-treetable

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

defyma/yii2-treetable
=====================

Yii 2.0 implementation of tree table behavior using jquery-treetable plugin.

1.0.2(5y ago)04BSD-3-ClausePHP

Since Mar 26Pushed 5y agoCompare

[ Source](https://github.com/defyma/yii2-treetable)[ Packagist](https://packagist.org/packages/defyma/yii2-treetable)[ Docs](https://github.com/defyma/yii2-treetable)[ RSS](/packages/defyma-yii2-treetable/feed)WikiDiscussions master Synced 3d ago

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

yii2-treetable
==============

[](#yii2-treetable)

Fork from:

Yii 2.0 implementation of tree table behavior using jquery-treetable plugin. Provides a Gridview like widget.

- jquery-treetable -

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

[](#installation)

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

Either run

```
$ php composer.phar require defyma/yii2-treetable

```

or add

```
"defyma/yii2-treetable": "*"

```

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

Usage
-----

[](#usage)

Use `defyma\treetable\Treetable` widget instead of a Yii Gridview. The example below will collapse every even row in the table below the odd one above it.

```

```

Read the documentation on treetable () to understand how working with the `data-tt-id` and `data-tt-parent-id`can determine the nesting. A function for `rowOptions` as shown above can work with your datamodel to nest as you like.

Tip
---

[](#tip)

Not all CSS from treetable is included because it breaks heavilly with Bootstrap layout. A css example is included to style the expand/collapse `` with an image. Take a look at the CSS provided with jquery-treetable for more inspiration.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.8% 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

Unknown

Total

1

Last Release

1873d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8898f779dce4ff78aeefb9d7e8f0bbbb2ddf885a4f9ed5105d556646e1635d67?d=identicon)[defyma](/maintainers/defyma)

---

Top Contributors

[![ASlatius](https://avatars.githubusercontent.com/u/5786593?v=4)](https://github.com/ASlatius "ASlatius (7 commits)")[![defyma](https://avatars.githubusercontent.com/u/22837102?v=4)](https://github.com/defyma "defyma (6 commits)")

---

Tags

jquerytreeyii2extensionwidgettablegridviewtreetable

### Embed Badge

![Health badge](/badges/defyma-yii2-treetable/health.svg)

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

###  Alternatives

[kartik-v/yii2-widget-colorinput

An enhanced Yii 2 widget encapsulating the HTML 5 color input (sub repo split from yii2-widgets)

324.8M10](/packages/kartik-v-yii2-widget-colorinput)[kartik-v/yii2-widget-spinner

A widget to render animated CSS3 loading spinners with VML fallback for IE (sub repo split from yii2-widgets)

283.9M3](/packages/kartik-v-yii2-widget-spinner)[kartik-v/yii2-widget-affix

A scrollspy and affixed enhanced navigation to highlight page sections (sub repo split from yii2-widgets)

153.8M3](/packages/kartik-v-yii2-widget-affix)[kartik-v/yii2-sortable-input

Sortable input widget based on yii2-sortable extension.

24660.4k2](/packages/kartik-v-yii2-sortable-input)[fedemotta/yii2-widget-datatables

DataTables widget for Yii2

34179.4k1](/packages/fedemotta-yii2-widget-datatables)

PHPackages © 2026

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