PHPackages                             infoweb-internet-solutions/yii2-cms-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. infoweb-internet-solutions/yii2-cms-menu

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

infoweb-internet-solutions/yii2-cms-menu
========================================

Menu module for Yii2

3.1.0(10y ago)69706[5 issues](https://github.com/infoweb-internet-solutions/yii2-cms-menu/issues)1MITPHP

Since Oct 9Pushed 9y ago5 watchersCompare

[ Source](https://github.com/infoweb-internet-solutions/yii2-cms-menu)[ Packagist](https://packagist.org/packages/infoweb-internet-solutions/yii2-cms-menu)[ RSS](/packages/infoweb-internet-solutions-yii2-cms-menu/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (21)Used By (1)

Menu module for Yii 2
=====================

[](#menu-module-for-yii-2)

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

[](#installation)

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

Either run

```
php composer.phar require infoweb-internet-solutions/yii2-cms-menu "*"

```

or add

```
"infoweb-internet-solutions/yii2-cms-menu": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply modify your application configuration as follows:

```
'modules' => [
    ...
    'menu' => [
        'class' => 'infoweb\menu\Module',
    ],
],
```

Import the translations and use category 'infoweb/menu':

```
yii i18n/import @infoweb/menu/messages

```

To use the module, execute yii migration

```
yii migrate/up --migrationPath=@vendor/infoweb-internet-solutions/yii2-cms-menu/migrations

```

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

[](#configuration)

All available configuration options are listed below with their default values.

---

##### enablePrivateMenuItems (type: `boolean`, default: `false`)

[](#enableprivatemenuitems-type-boolean-default-false)

If this option is set to `true`, the `public` attribute of a menu-item can be managed and the `getTree` function in `models/frontend/Menu` will only return public menu-items if the current application user is a guest. Keep in mind that you will also have to enable the module in your frontend application to if you set this option to `true`.

---

##### defaultPublicVisibility (type: `boolean`, default: `true`)

[](#defaultpublicvisibility-type-boolean-default-true)

This is the value that will be used as the default value of the `public` attribute of a menu-item.

---

##### allowContentDuplication (type: `boolean`, default: `true`)

[](#allowcontentduplication-type-boolean-default-true)

If this option is set to `true`, the `duplicateable` jquery plugin is activated on all translateable attributes.

---

##### createEntityFromMenuItem (type: `boolean`, default: `true`)

[](#createentityfrommenuitem-type-boolean-default-true)

If this option is set to `true`, you can for example create a page in the menu item form.

---

##### linkableEntities (type: `boolean`, default: `[]`)

[](#linkableentities-type-boolean-default-)

These are the entities will be used in the `menu` module. The fully qualified name of the entity class is used as the key in the array. An entity can only be linked if it implements the `getUrl` and `getAllForDropDownList` methods. For each configured entity the following fields are required:

- \*\* label \*\*: The entity label that will be used in the `menu` module
- \*\* i18nGroup \*\*: The group that will be used for the translation of the label

Example configuration:

```
'menu' => [
    'class' => 'infoweb\menu\Module',
    'enablePrivateMenuItems' => true,
    'linkableEntities' => [
        MedicalTraining::className()  => [
            'label'     => 'Training',
            'i18nGroup' => 'infoweb/medical-training',
        ]
    ]
],
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance3

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

15

Last Release

3677d ago

Major Versions

1.2 → 2.0.02015-12-17

2.0.2 → 3.0.02016-02-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a977fc12b7f6eba9255863c5d9512e400457c69dd67a4b1df82dbc38908768d?d=identicon)[infoweb-internet-solutions](/maintainers/infoweb-internet-solutions)

---

Top Contributors

[![rubenheymans](https://avatars.githubusercontent.com/u/2543870?v=4)](https://github.com/rubenheymans "rubenheymans (75 commits)")[![infoweb-internet-solutions](https://avatars.githubusercontent.com/u/8706156?v=4)](https://github.com/infoweb-internet-solutions "infoweb-internet-solutions (66 commits)")[![fabiomaggio](https://avatars.githubusercontent.com/u/729877?v=4)](https://github.com/fabiomaggio "fabiomaggio (12 commits)")[![kurt0015](https://avatars.githubusercontent.com/u/2662926?v=4)](https://github.com/kurt0015 "kurt0015 (12 commits)")

---

Tags

menuyii2infowebyii2-cms-menu

### Embed Badge

![Health badge](/badges/infoweb-internet-solutions-yii2-cms-menu/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)

PHPackages © 2026

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