PHPackages                             vanquyet/yii2-menu - 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. vanquyet/yii2-menu

ActiveYii2-extension

vanquyet/yii2-menu
==================

Arranges your links in groups that are easy to use to render different HTML codes

v1.0.1(8y ago)01331MITPHP

Since Jun 8Pushed 8y agoCompare

[ Source](https://github.com/vanquyettran/yii2-menu)[ Packagist](https://packagist.org/packages/vanquyet/yii2-menu)[ RSS](/packages/vanquyet-yii2-menu/feed)WikiDiscussions master Synced 2d ago

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

Yii2 Menu
=========

[](#yii2-menu)

Arranges your links in groups that are easy to use to render different HTML codes

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist vanquyet/yii2-menu "*"

```

or add

```
"vanquyet/yii2-menu": "*"

```

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

Usage
-----

[](#usage)

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

```
use vanquyet\menu\Menu;
$menu = new Menu();
$menu->init(
    [
        'info' => [
            'homePage' => [
                'label' => 'Trang chủ',
                'url' => Url::home(true),
                'parentKey' => null
            ],
            'aboutPage' => [
                'label' => 'Giới thiệu',
                'url' => Url::to(['site/about'], true),
                'parentKey' => null
            ],
            'teachers' => [
                'label' => 'Giáo viên',
                'url' => '#',
                'parentKey' => 'aboutPage'
            ]
        ]
    ]
);

var_dump($menu->getRootItems());
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Every ~6 days

Total

2

Last Release

3255d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e8b08d86697ba624bd690757355b47fc21fd3a71205b6c5df8f2f17af1c6b0a?d=identicon)[vanquyettran](/maintainers/vanquyettran)

---

Top Contributors

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

---

Tags

yii2-menuMenu widget

### Embed Badge

![Health badge](/badges/vanquyet-yii2-menu/health.svg)

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

###  Alternatives

[cinghie/yii2-menu

Yii2 Menu to create, manage, and delete dynamic menus in a Yii2 site.

101.1k](/packages/cinghie-yii2-menu)

PHPackages © 2026

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