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

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

cinghie/yii2-menu
=================

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

0.9.6(6y ago)101.1k7[2 issues](https://github.com/cinghie/yii2-menu/issues)BSD-3-ClausePHP

Since May 16Pushed 3y ago4 watchersCompare

[ Source](https://github.com/cinghie/yii2-menu)[ Packagist](https://packagist.org/packages/cinghie/yii2-menu)[ Docs](https://github.com/cinghie/yii2-menu)[ RSS](/packages/cinghie-yii2-menu/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (3)Versions (11)Used By (0)

Yii2 Menù
=========

[](#yii2-menù)

[![License](https://camo.githubusercontent.com/a708583b620df722cec118f54dcfbf6ed620f7fc58ffbb80706371a848e32972/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f63696e676869652f796969322d6d656e752e737667)](https://camo.githubusercontent.com/a708583b620df722cec118f54dcfbf6ed620f7fc58ffbb80706371a848e32972/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f63696e676869652f796969322d6d656e752e737667)[![Latest Stable Version](https://camo.githubusercontent.com/10a8f41f55eb72204c4b34d5530af7e12804b371f6185c893454289b875383e6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f63696e676869652f796969322d6d656e752e737667)](https://camo.githubusercontent.com/10a8f41f55eb72204c4b34d5530af7e12804b371f6185c893454289b875383e6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f63696e676869652f796969322d6d656e752e737667)[![Latest Release Date](https://camo.githubusercontent.com/cabd1d5d9201d181f0bccbbee47e1cffd44e94241008a11f32ea694b85db429d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f63696e676869652f796969322d6d656e752e737667)](https://camo.githubusercontent.com/cabd1d5d9201d181f0bccbbee47e1cffd44e94241008a11f32ea694b85db429d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f63696e676869652f796969322d6d656e752e737667)[![Latest Commit](https://camo.githubusercontent.com/12ca74c7c1900eda63bf1b8b6dc91a80c65be333ad8f30197eb83e2c4d71c707/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f63696e676869652f796969322d6d656e752e737667)](https://camo.githubusercontent.com/12ca74c7c1900eda63bf1b8b6dc91a80c65be333ad8f30197eb83e2c4d71c707/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f63696e676869652f796969322d6d656e752e737667)[![Total Downloads](https://camo.githubusercontent.com/d95710e8ba0c0087d4db8f53a5d867ae4245ef5763ad41c534acb0152766f05a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63696e676869652f796969322d6d656e752e737667)](https://packagist.org/packages/cinghie/yii2-menu)

Yii2 Menu to create, manage, and delete menù in a Yii2 site

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

[](#installation)

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

Either run

```
$ php composer.phar require cinghie/yii2-menu "*"

```

or add

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

```

Configuration
-------------

[](#configuration)

### 1. Update yii2 menu database schema

[](#1-update-yii2-menu-database-schema)

Make sure that you have properly configured `db` application component and run the following command:

```
$ php yii migrate/up --migrationPath=@vendor/cinghie/yii2-menu/migrations

```

### 2. Install Yii2 Multilanguage

[](#2-install-yii2-multilanguage)

### 3. Set configuration file

[](#3-set-configuration-file)

Set on your configuration file

```
'modules' => [

	// Yii2 Menu
	'menu' => [
		'class' => 'cinghie\menu\Menu',
		'menuRoles' => ['admin'],
	],

]

```

Overrides
---------

[](#overrides)

Override controller example, on modules config

```
'modules' => [

	'menu' => [
		'class' => 'cinghie\menu\Menu',
		'controllerMap' => [
			'items' => 'app\controllers\ItemsController',
			'types' => 'app\controllers\TypesController',
		]
	]

],

```

Override models example, on modules config

```
'modules' => [

	'menu' => [
		'class' => 'cinghie\menu\Menu',
		'modelMap' => [
			'Items' => 'app\models\menu\Items',
			'Types' => 'app\models\menu\Types',
		]
	]

],

```

Override view example, on components config

```
'components' => [

	'view' => [
		'theme' => [
			'pathMap' => [
				'@cinghie/menu/views/items' => '@app/views/menu/items',
				'@cinghie/menu/views/types' => '@app/views/menu/types',
			],
		],
	],

],

```

URLS
----

[](#urls)

- Menù Types: PathToApp/index.php?r=menu/types/index
- Menù Types with Pretty Urls: PathToApp/menu/types/index
- Menù Items: PathToApp/index.php?r=menu/items/index
- Menù Items with Pretty Urls: PathToApp/menu/items/index

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.6% 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 ~160 days

Recently: every ~192 days

Total

9

Last Release

2361d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cfedb99c8fcbaf668c4f9779d341997b84029673eda224241b11732981cbc8b2?d=identicon)[cinghie](/maintainers/cinghie)

---

Top Contributors

[![cinghie](https://avatars.githubusercontent.com/u/2445152?v=4)](https://github.com/cinghie "cinghie (81 commits)")[![appzio](https://avatars.githubusercontent.com/u/3535303?v=4)](https://github.com/appzio "appzio (1 commits)")[![valexus1](https://avatars.githubusercontent.com/u/7592441?v=4)](https://github.com/valexus1 "valexus1 (1 commits)")

---

Tags

yii2-menumenù yii2

### Embed Badge

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

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)

PHPackages © 2026

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