PHPackages                             yongtiger/yii2-category - 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. yongtiger/yii2-category

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

yongtiger/yii2-category
=======================

Allows user to create multilevel category from their desire table for the Yii2.

v0.0.14(8y ago)2334MITPHPPHP &gt;=5.5

Since Apr 9Pushed 8y ago2 watchersCompare

[ Source](https://github.com/yongtiger/yii2-category)[ Packagist](https://packagist.org/packages/yongtiger/yii2-category)[ Docs](http://www.branbook.cc)[ RSS](/packages/yongtiger-yii2-category/feed)WikiDiscussions master Synced 2mo ago

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

yii2-category v0.0.14 (ADD# delete-all-url, move-url in Category::getTree)
==========================================================================

[](#yii2-category-v0014-add-delete-all-url-move-url-in-categorygettree)

Allows user to create multilevel category from their desire table for the Yii2.

[![Latest Stable Version](https://camo.githubusercontent.com/888936b91b088fce70ff855e19b910eda03f0e0a77433bd50be8aa7ac2c32f8f/68747470733a2f2f706f7365722e707567782e6f72672f796f6e6774696765722f796969322d63617465676f72792f762f737461626c65)](https://packagist.org/packages/yongtiger/yii2-category)[![Total Downloads](https://camo.githubusercontent.com/6903761f6b9d906b899f8e7e7bd85f8c4d441031f9757926d3f6c1ddd5d4dc43/68747470733a2f2f706f7365722e707567782e6f72672f796f6e6774696765722f796969322d63617465676f72792f646f776e6c6f616473)](https://packagist.org/packages/yongtiger/yii2-category)[![Latest Unstable Version](https://camo.githubusercontent.com/d906ad670ae97ed1a4b3eaf0049d11582842fd96a2a6698b069c6cc68dc466e9/68747470733a2f2f706f7365722e707567782e6f72672f796f6e6774696765722f796969322d63617465676f72792f762f756e737461626c65)](https://packagist.org/packages/yongtiger/yii2-category)[![License](https://camo.githubusercontent.com/32e855d6e0bf9073173a2009aa96b65365274edd716185daf230638bed91bfe0/68747470733a2f2f706f7365722e707567782e6f72672f796f6e6774696765722f796969322d63617465676f72792f6c6963656e7365)](https://packagist.org/packages/yongtiger/yii2-category)

FEATURES
--------

[](#features)

- Create Unlimited Multilevel categories
- Complete category management (create, update, delete, deleteAll, etc.)
- Visualize category tree structure

[![](docs/demo.png)](docs/demo.png)

DEPENDENCES
-----------

[](#dependences)

- [yongtiger/yii2-tree-manager](https://github.com/yongtiger/yii2-tree-manager)

INSTALLATION
------------

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist yongtiger/yii2-category "*"

```

or add

```
"yongtiger/yii2-category": "*"
```

to the require section of your composer.json.

CONFIGURATION
-------------

[](#configuration)

### Module category

[](#module-category)

```
'modules' => [
	'category' => [
	    'class' => 'yongtiger\category\Module',
	    'tableName' => '{{%category_nested_sets}}',
	    // 'tableName' => '{{%category_adjacency_list}}',
	],
	// ...
],
```

### Module treemanager

[](#module-treemanager)

```
'modules' => [
	'treemanager' => [
	    'class' => 'yongtiger\tree\Module',
	    'behaviors' => [
	        'tree' => [
	            'class' => \creocoder\nestedsets\NestedSetsBehavior::className(),
	            // 'class' => \paulzi\nestedsets\NestedSetsBehavior::className(),
	            ///To disable the `creocoder/yii2-nested-sets` multiple tree, set to `false`. @see https://github.com/creocoder/yii2-nested-sets
	            ///To disable the `paulzi/yii2-nested-sets` multiple tree, set to `null`. @see https://github.com/paulzi/yii2-nested-sets
	            'treeAttribute' => 'tree',  ///multiple tree mode for nested-sets
	            // 'leftAttribute' => 'lft',
	            // 'rightAttribute' => 'rgt',
	            // 'depthAttribute' => 'depth',
	        ],
	        // 'tree' => [
	        //     'class' => \paulzi\adjacencyList\AdjacencyListBehavior::className(),
	        // ],
	    ],
	    // 'isOpAllTransactions' => false,  ///Must set to `true` while using `creocoder/yii2-nested-sets` and `paulzi/yii2-nested-sets`.
	    // 'queryClass' => 'common\models\CategoryQuery',
	],
	// ...
],
```

USAGES
------

[](#usages)

```
http://localhost/index.php?r=category

```

NOTES
-----

[](#notes)

DOCUMENTS
---------

[](#documents)

REFERENCES
----------

[](#references)

SEE ALSO
--------

[](#see-also)

TBD
---

[](#tbd)

[Development roadmap](docs/development-roadmap.md)
--------------------------------------------------

[](#development-roadmap)

LICENSE
-------

[](#license)

**yii2-category** is released under the MIT license, see [LICENSE](https://opensource.org/licenses/MIT) file for details.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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 ~18 days

Recently: every ~59 days

Total

15

Last Release

3068d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4419bd4781ece5b372f87972d5559c6a9ff305d8600fcf99409ce072922b9771?d=identicon)[yongtiger](/maintainers/yongtiger)

---

Tags

managertreeyii2extensioncategorymultilevel

### Embed Badge

![Health badge](/badges/yongtiger-yii2-category/health.svg)

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

###  Alternatives

[execut/yii2-widget-bootstraptreeview

Bootstrap Tree View widget wrapper for yii2

46170.2k](/packages/execut-yii2-widget-bootstraptreeview)[gilek/yii2-gtreetable

yii2-gtreetable is an extension of Yii 2 Framework, which is wrapper for bootstrap-gtreetable plug-in, on the other hand it provides functionality which allows to save the nodes states into database.

4111.8k](/packages/gilek-yii2-gtreetable)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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