PHPackages                             braunstetter/menu-bundle - 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. [Templating &amp; Views](/categories/templating)
4. /
5. braunstetter/menu-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

braunstetter/menu-bundle
========================

An easy way to implement complex menu systems in your symfony projects.

v0.3.0(1y ago)10862↓50%[3 issues](https://github.com/Braunstetter/menu-bundle/issues)1MITPHPPHP ^8.1

Since Aug 20Pushed 1y ago2 watchersCompare

[ Source](https://github.com/Braunstetter/menu-bundle)[ Packagist](https://packagist.org/packages/braunstetter/menu-bundle)[ RSS](/packages/braunstetter-menu-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (15)Versions (12)Used By (1)

MenuBundle
==========

[](#menubundle)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e5bbed8727fc2fd456f2abf488eab93bac5c77763210400926d57da76753d49d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f427261756e737465747465722f6d656e752d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/Braunstetter/menu-bundle/?branch=main)[![Build Status](https://camo.githubusercontent.com/a70df8bb5e2812a0ccf9ff237995abfc529c053a150f8f4d5da598e77dbff743/68747470733a2f2f6170702e7472617669732d63692e636f6d2f427261756e737465747465722f6d656e752d62756e646c652e7376673f6272616e63683d6d61696e)](https://app.travis-ci.com/Braunstetter/menu-bundle)[![Total Downloads](https://camo.githubusercontent.com/d971e4917bbceb8ee09495fc2d154220b9741bafb7382b34ec609f19a41421b1/68747470733a2f2f706f7365722e707567782e6f72672f627261756e737465747465722f6d656e752d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/braunstetter/menu-bundle)[![License](https://camo.githubusercontent.com/76b565a791ae1b1dd333936d9e616315c6bb424f6aa7157b74197edc3c535ad5/68747470733a2f2f706f7365722e707567782e6f72672f627261756e737465747465722f6d656e752d62756e646c652f6c6963656e7365)](https://packagist.org/packages/braunstetter/menu-bundle)

Overview
--------

[](#overview)

`braunstetter/menu-bundle` is a powerful tool designed to simplify the process of creating menus in your Symfony projects. It provides an easy and intuitive interface to create and configure various types of menus.

Benefits of using this bundle include:

- **No matcher complexities:** You can easily activate a menu item with the selectedSubnavItem function, without it needing to be a direct child.
- **No rendering system to struggle with:** You can use the render blocks provided by this bundle, or fetch the raw data and customize it as you wish.
- **Reusability:** You can reuse your menu classes in different contexts (menu, breadcrumb) across your application.
- **Expandability:** Grow your ecosystem by letting others extend your finished menus using the MenuEvent class.

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

[](#installation)

To install the MenuBundle, simply run the following command:

`composer require braunstetter/menu-bundle`

Symfony flex does all the rest for you.

Usage
-----

[](#usage)

After installation, you can create a menu by creating a class implementing `MenuInterface`. This is an example of how to define a menu:

```
