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

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

andrewdanilov/yii2-menu
=======================

Menu tools

2.0.4(4y ago)192MITPHPPHP &gt;=5.6.0

Since Oct 29Pushed 4y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (8)Used By (0)

Menu tools
==========

[](#menu-tools)

Various tools for constructing menus, mobile menus, etc.

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

[](#installation)

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

Either run

```
composer require andrewdanilov/yii2-menu "~2.0.0"

```

or add

```
"andrewdanilov/yii2-menu": "~2.0.0"

```

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

Changes
-------

[](#changes)

Breadcrumbs widget in version 2.0.0 was removed and became a standalone extension [yii2-breadcrumbs](https://github.com/AndrewDanilov/yii2-breadcrumbs)

Usage
-----

[](#usage)

If you want to use your own templates for menus, copy `yii2-menu/src/views` folder contents to your own location, for i.e. to `frontend/views/site/_blocks/`and fill properties `templateWrapper`, `templateParentItem`, `templateItem`, `templateActiveItem` and `templateButton` to your path values (see examples below).

**Menu**

```
