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

ActiveYii2-extension

pceuropa/yii2-menu
==================

Menu bootstrap builder. Sort by drag and drop

2.1.4(9y ago)2711.8k16[5 issues](https://github.com/pceuropa/yii2-menu/issues)MITPHP

Since Oct 1Pushed 7y ago5 watchersCompare

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

READMEChangelog (10)Dependencies (1)Versions (8)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/cf112cc199c42c816c84801f2467ca0b38e29a21a1ed8108cd326629e10703df/68747470733a2f2f706f7365722e707567782e6f72672f70636575726f70612f796969322d6d656e752f762f737461626c65)](https://packagist.org/packages/pceuropa/yii2-menu) [![Total Downloads](https://camo.githubusercontent.com/04c77aaec3b2197d117334b26772aa869c5e928bd15cff4e054d9ab1b2012bbf/68747470733a2f2f706f7365722e707567782e6f72672f70636575726f70612f796969322d6d656e752f646f776e6c6f616473)](https://packagist.org/packages/pceuropa/yii2-menu) [![Latest Unstable Version](https://camo.githubusercontent.com/42e28cc4d5e2afd3bce359bea387ca791bc2ae1d43320dffdafdd546a2e43d10/68747470733a2f2f706f7365722e707567782e6f72672f70636575726f70612f796969322d6d656e752f762f756e737461626c65)](https://packagist.org/packages/pceuropa/yii2-menu) [![License](https://camo.githubusercontent.com/22620fffbe189e30336571b926889dc0e5c911ec1368e1da84a787f12c13899c/68747470733a2f2f706f7365722e707567782e6f72672f70636575726f70612f796969322d6d656e752f6c6963656e7365)](https://packagist.org/packages/pceuropa/yii2-menu)

Bootstrap Menu Builder for Yii2
===============================

[](#bootstrap-menu-builder-for-yii2)

[![preview](https://camo.githubusercontent.com/83f61f45678bde7da6f4077d31f3aba44e80fd37e03fdab2775c34c1ad4a47d4/687474703a2f2f70636575726f70612e6e65742f696d616765732f796969322d6d656e752e706e67)](https://camo.githubusercontent.com/83f61f45678bde7da6f4077d31f3aba44e80fd37e03fdab2775c34c1ad4a47d4/687474703a2f2f70636575726f70612e6e65742f696d616765732f796969322d6d656e752e706e67)

[DEMO](https://pceuropa.net/menu/creator)

Features
--------

[](#features)

- Creating links, drop menus, line (diver) in the navbar-left and/or navbar-right
- Sorting, editing, and deleting using drag and drop
- No jQuery for drag and drop ([RubaXa/Sortable](https://github.com/RubaXa/Sortable))
- CRUD operations by jQuery Ajax)

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

[](#installation)

```
composer require pceuropa/yii2-menu dev-master

```

Add the following code to config file Yii2

```
'modules' => [
	'menu' => [
            'class' => '\pceuropa\menu\Menu',
        ],
	]
```

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

[](#configuration)

### 1. Create database schema

[](#1-create-database-schema)

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

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

### 2. Add the following code to view layout file Yii2

[](#2-add-the-following-code-to-view-layout-file-yii2)

```
use pceuropa\menu\Menu;

NavBar::begin(['brandLabel' => 'Brand','brandUrl' => Url::home(),]);

echo Nav::widget([ 'options' => ['class' => 'navbar-nav navbar-left'],
					'items' => Menu::NavbarLeft(1)  // argument is id of menu
				]);

echo Nav::widget([ 'options' => ['class' => 'navbar-nav navbar-right'],
					'items' => Menu::NavbarRight(1)
				]);
NavBar::end();
```

### 3. Getting started

[](#3-getting-started)

/menu/creator

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 86.1% 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 ~19 days

Recently: every ~4 days

Total

7

Last Release

3396d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d8b352463e73aaf2423e8d02e6755fac6d3637f3c97799b4009e40cf8c0697f?d=identicon)[pceuropa](/maintainers/pceuropa)

---

Top Contributors

[![pceuropa](https://avatars.githubusercontent.com/u/9319670?v=4)](https://github.com/pceuropa "pceuropa (62 commits)")[![rgen3](https://avatars.githubusercontent.com/u/5081254?v=4)](https://github.com/rgen3 "rgen3 (10 commits)")

---

Tags

bootstrapdragdropnavbaryii2-extensionyii2extensioncreatormenu-builderbootstrap menudrag end drop

### Embed Badge

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

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

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[dmstr/yii2-pages-module

Application sitemap and navigation manager module for Yii 2.0 Framework

3177.5k2](/packages/dmstr-yii2-pages-module)[pceuropa/yii2-forms

Form builder or code generator for Yii2. List GridView of forms. Saving form data in a databases.

361.8k](/packages/pceuropa-yii2-forms)

PHPackages © 2026

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