PHPackages                             dasturchiuz/treebehaviorcategories - 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. dasturchiuz/treebehaviorcategories

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

dasturchiuz/treebehaviorcategories
==================================

NestedSetsTreeBehavior for build array

1.1.0(6y ago)16MITPHP

Since Jan 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/dasturchiuz/yii2treeArray)[ Packagist](https://packagist.org/packages/dasturchiuz/treebehaviorcategories)[ RSS](/packages/dasturchiuz-treebehaviorcategories/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (0)

NestedSetsTreeBehavior
======================

[](#nestedsetstreebehavior)

NestedSetsTreeBehavior this is the connector between

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

[](#installation)

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

Either run

```
composer require dasturchiuz/treebehaviorcategories

```

or add

```
"dasturchiuz/treebehaviorcategories": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your model :

```
'htmlTreeCategory'=>[
    'class' => \dasturchiuz\treebehaviorcategories\NestedSetsTreeBehavior::className()
]
```

use

```
SomeModel::findOne($id)->treeCategory()
```

to get arrays

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2298d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/85bd0881b9004bb87267a9a46ff63553129a59fd7b19aa9353664788d98e8d06?d=identicon)[dasturchiuz](/maintainers/dasturchiuz)

---

Top Contributors

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

---

Tags

arrayyii2extensionBehaviornested setscreocoder

### Embed Badge

![Health badge](/badges/dasturchiuz-treebehaviorcategories/health.svg)

```
[![Health](https://phpackages.com/badges/dasturchiuz-treebehaviorcategories/health.svg)](https://phpackages.com/packages/dasturchiuz-treebehaviorcategories)
```

###  Alternatives

[sjaakp/yii2-taggable

Manage tags of ActiveRecord in Yii2.

3030.6k](/packages/sjaakp-yii2-taggable)[mdmsoft/yii2-autonumber

Auto number extension for the Yii framework

1830.9k](/packages/mdmsoft-yii2-autonumber)[baibaratsky/yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

1174.1k9](/packages/baibaratsky-yii2-serialized-attributes-behavior)

PHPackages © 2026

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