PHPackages                             yii2x/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yii2x/yii2-menu

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yii2x/yii2-menu
===============

YII2 Menu

012PHP

Since May 12Pushed 9y agoCompare

[ Source](https://github.com/yii2x/yii2-menu)[ Packagist](https://packagist.org/packages/yii2x/yii2-menu)[ RSS](/packages/yii2x-yii2-menu/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

YII2 Menu
=========

[](#yii2-menu)

YII2 Menu

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist yii2x/yii2-menu "@dev"

```

or add

```
"yii2x/yii2-menu": "@dev"

```

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

Usage
-----

[](#usage)

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

Application Config:
-------------------

[](#application-config)

```

    [
        'urlManager' => [
            'enablePrettyUrl' => true,
            'enableStrictParsing' => false,
            'showScriptName' => false,
            'rules' => [
                ...

                ['class' => 'yii\rest\UrlRule', 'controller' => ['menuapi']],

                ...
            ]
        ],
    ],
    'controllerMap' => [
        'menuapi' => [
            'class' => 'yii2x\ui\menu\controllers\MenuController'
        ]
    ],
```

Admin Menu Manager
------------------

[](#admin-menu-manager)

```

```

Menu Widget:
------------

[](#menu-widget)

```

```

Load Menu Items
---------------

[](#load-menu-items)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/08fbce981a3ddf0cf9ce3305d03908603c8f7ae2ff510c95138c166d66308ec8?d=identicon)[basowy](/maintainers/basowy)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[joomlatools/composer

A Composer plugin to install Joomla extensions into your installation.

5332.9k24](/packages/joomlatools-composer)[imanghafoori/laravel-temp-tag

Laravel Temporary Tag simplify tagging Eloquent models.

1018.6k](/packages/imanghafoori-laravel-temp-tag)[pipecraft/flarum-ext-id-slug

A Flarum extension. Use id as slug in discussion URL.

186.2k](/packages/pipecraft-flarum-ext-id-slug)[pantheon-systems/pantheon-hud

Provide situational awareness of the Pantheon platform from within your WordPress dashboard.

175.7k](/packages/pantheon-systems-pantheon-hud)

PHPackages © 2026

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