PHPackages                             efureev/yii2-bootstraptreeview - 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. efureev/yii2-bootstraptreeview

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

efureev/yii2-bootstraptreeview
==============================

Bootstrap Tree View widget wrapper for yii2

1.0.3(10y ago)06[1 PRs](https://github.com/efureev/yii2-widget-bootstraptreeview/pulls)Apache-2.0PHP

Since Oct 13Pushed 5y ago1 watchersCompare

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

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

Bootstrap Tree View widget wrapper for yii2
===========================================

[](#bootstrap-tree-view-widget-wrapper-for-yii2)

[Widget page](https://github.com/efureev/bootstrap-treeview)

[![Bootstrap Tree View Default](https://camo.githubusercontent.com/9d219cee70cd88fe2d88e6eb756158b97edc781e559435bd252672828b5dfee0/68747470733a2f2f7261772e6769746875622e636f6d2f656675726565762f626f6f7473747261702d74726565766965772f6d61737465722f73637265656e73686f742f64656661756c742e504e47)](https://camo.githubusercontent.com/9d219cee70cd88fe2d88e6eb756158b97edc781e559435bd252672828b5dfee0/68747470733a2f2f7261772e6769746875622e636f6d2f656675726565762f626f6f7473747261702d74726565766965772f6d61737465722f73637265656e73686f742f64656661756c742e504e47)

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

[](#installation)

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

### Install

[](#install)

Either run

```
$ php composer.phar require efureev/yii2-widget-bootstraptreeview "dev-master"

```

or add

```
"efureev/yii2-widget-bootstraptreeview": "dev-master"

```

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

Simple example
--------------

[](#simple-example)

```
use execut\widget\TreeView;
use yii\web\JsExpression;

$items = [
    [
        'text' => 'Parent 1',
        'nodes' => [
            [
                'text' => 'Child 1',
                'nodes' => [
                    [
                       'text' => 'Grandchild 1'
                    ],
                    [
                       'text' => 'Grandchild 2'
                    ]
                ]
            ],
            [
                'text' => 'Child 2',
            ]
        ],
    ],
    [
        'text' => 'Parent 2',
    ]
];

$onSelect = new JsExpression( $data,
    'size' => TreeView::SIZE_SMALL,
    'clientOptions' => [
        'onNodeSelected' => $onSelect,
        'selectedBackColor' => 'rgb(40, 153, 57)',
        'borderColor' => '#fff',
    ],
]);
```

Pjax navigation example
-----------------------

[](#pjax-navigation-example)

```
use yii\widgets\Pjax;
use yii\web\JsExpression;
use execut\widget\TreeView;
Pjax::begin([
    'id' => 'pjax-container',
]);

echo \yii::$app->request->get('page');

Pjax::end();

$onSelect = new JsExpression( 'Parent 1',
        'def' => 'Description',
        'href' => Url::to(['', 'page' => 'parent1']),
        'nodes' => [
            [
                'text' => 'Child 1',
                'href' => Url::to(['', 'page' => 'child1']),
                'tags' => [12],
                'nodes' => [
                    [
                        'text' => 'Grandchild 1',
                        'href' => Url::to(['', 'page' => 'grandchild1'])
                    ],
                    [
                        'text' => 'Grandchild 2',
                        'href' => Url::to(['', 'page' => 'grandchild2'])
                    ]
                ]
            ],
        ],
    ],
];

$onNodeHover = new \yii\web\JsExpression( TreeView::SIZE_SMALL,
    'clientOptions' => [
        'onNodeSelected' => $onSelect,
        'showTags' => true,
		'showTips' => true,
		'onNodeSelected' => $onSelect,
		'onNodeHover' => $onNodeHover,
		'onNodeLeave' => $onNodeLeave,
    ],
]);
```

License
-------

[](#license)

**yii2-widget-bootstraptreeview** is released under the Apache License Version 2.0. See the bundled `LICENSE.md` for details.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~0 days

Total

3

Last Release

3918d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/62a6e061d1ccab4d5de8dcba717b7634f91e4842b32ca26420b8261c66104bf7?d=identicon)[efureev](/maintainers/efureev)

---

Top Contributors

[![execut](https://avatars.githubusercontent.com/u/2357407?v=4)](https://github.com/execut "execut (8 commits)")[![efureev](https://avatars.githubusercontent.com/u/5524684?v=4)](https://github.com/efureev "efureev (6 commits)")

---

Tags

pluginjquerytreeyii2extensionbootstrapforminput

### Embed Badge

![Health badge](/badges/efureev-yii2-bootstraptreeview/health.svg)

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

###  Alternatives

[execut/yii2-widget-bootstraptreeview

Bootstrap Tree View widget wrapper for yii2

47175.5k](/packages/execut-yii2-widget-bootstraptreeview)[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)

474.3M8](/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.6M13](/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)

194.3M6](/packages/kartik-v-yii2-widget-touchspin)[kartik-v/yii2-widget-timepicker

Enhanced Yii2 wrapper for the bootstrap timepicker plugin (sub repo split from yii2-widgets)

445.2M14](/packages/kartik-v-yii2-widget-timepicker)[kartik-v/yii2-widget-colorinput

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

345.1M12](/packages/kartik-v-yii2-widget-colorinput)

PHPackages © 2026

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