PHPackages                             jambtc/yii2-tree-grid-view - 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. jambtc/yii2-tree-grid-view

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

jambtc/yii2-tree-grid-view
==========================

A Yii2 GridView extension that provides a tree-like structure with collapsible rows.

01.9k—3.8%PHP

Since May 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jambtc/yii2-TreeGridView)[ Packagist](https://packagist.org/packages/jambtc/yii2-tree-grid-view)[ RSS](/packages/jambtc-yii2-tree-grid-view/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

TreeGridView
============

[](#treegridview)

TreeGridView is a Yii2 GridView extension that provides a tree-like structure with collapsible rows.

Features
--------

[](#features)

- Display data in a tree structure.
- Collapsible rows for better organization of hierarchical data.
- Intuitive icons for expanding/collapsing rows.

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

[](#installation)

You can install the package using Composer. Add the package to your project with the following command:

```
composer require jambtc/yii2-tree-grid-view "dev-main"
```

Usage
-----

[](#usage)

```
use jambtc\TreeGridView;
use yii\data\ArrayDataProvider;

// Create a data provider (example with ArrayDataProvider)
$dataProvider = new ArrayDataProvider([
    'allModels' => [
        ['id' => 1, 'name' => 'Root', 'depth' => 0],
        ['id' => 2, 'name' => 'Child 1', 'depth' => 1],
        // Add more data as needed
    ],
    'key' => 'id',
]);

// Display the TreeGridView widget
echo TreeGridView::widget([
    'dataProvider' => $dataProvider,
    'depthColumn' => 'depth', // Specify the depth column
    'columns' => [
        'id',
        'name',
        // Add more columns as needed
    ],
]);
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/47701ba7eb67ed045c5969c8b4a6849133d6e8bde59c0a31d3b500ac38640b6d?d=identicon)[jambtc](/maintainers/jambtc)

---

Top Contributors

[![jambtc](https://avatars.githubusercontent.com/u/30697838?v=4)](https://github.com/jambtc "jambtc (8 commits)")

### Embed Badge

![Health badge](/badges/jambtc-yii2-tree-grid-view/health.svg)

```
[![Health](https://phpackages.com/badges/jambtc-yii2-tree-grid-view/health.svg)](https://phpackages.com/packages/jambtc-yii2-tree-grid-view)
```

###  Alternatives

[magento/magento-composer-installer

Composer installer for Magento modules

7523.3M318](/packages/magento-magento-composer-installer)

PHPackages © 2026

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