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

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

zacksleo/yii2-menu
==================

Menu bootstrap creator/builder. Sort by drag and drop

2.0.4(9y ago)037MITJavaScript

Since Oct 1Pushed 9y ago2 watchersCompare

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

READMEChangelog (1)DependenciesVersions (4)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/42d5c1de219d4056ed51987f528eeee05ff1ce2d43c7375206006e5a1eb67ef9/687474703a2f2f70636575726f70612e6e65742f696d67732f796969322d6d656e752e706e67)](https://camo.githubusercontent.com/42d5c1de219d4056ed51987f528eeee05ff1ce2d43c7375206006e5a1eb67ef9/687474703a2f2f70636575726f70612e6e65742f696d67732f796969322d6d656e752e706e67)

[DEMO](http://yii2-menu.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 zacksleo/yii2-menu dev-master

```

Add the following code to config file Yii2

```
'modules' => [
	'menu' => [
            'class' => '\zacksleo\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/zacksleo/yii2-menu/migrations
```

### 2. Add the following code to config file Yii2

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

```
use zacksleo\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)

example.com/menu/creator

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 86% 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 ~18 days

Total

3

Last Release

3522d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e97b8a6f67b09513e345a128d73a63898ae1ec9f6a6c77234c78b3f16d305d1?d=identicon)[zacksleo](/maintainers/zacksleo)

---

Top Contributors

[![pceuropa](https://avatars.githubusercontent.com/u/9319670?v=4)](https://github.com/pceuropa "pceuropa (37 commits)")[![zacksleo](https://avatars.githubusercontent.com/u/3369169?v=4)](https://github.com/zacksleo "zacksleo (6 commits)")

---

Tags

yii2extensioncreatormenu-builderbootstrap menudrag end drop

### Embed Badge

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

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

###  Alternatives

[pceuropa/yii2-menu

Menu bootstrap builder. Sort by drag and drop

2711.9k](/packages/pceuropa-yii2-menu)[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7760.0k](/packages/vyants-yii2-daemon)[pceuropa/yii2-forms

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

351.8k](/packages/pceuropa-yii2-forms)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1358.5k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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