PHPackages                             eschmar/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. eschmar/menu-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

eschmar/menu-bundle
===================

Simple Object oriented menus for Symfony.

v1.0.0(7y ago)0160MITPHPPHP &gt;=7.1.0

Since Dec 13Pushed 7y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Eschmar Menu Bundle
===================

[](#eschmar-menu-bundle)

Simple Object oriented menus for Symfony with role permissions.

Installation
============

[](#installation)

Composer ([Packagist](https://packagist.org/packages/eschmar/menu-bundle)):

```
composer require eschmar/menu-bundle ^1.0.0 # Symfony 4
```

See `eschmar/menu-bundle ^0.2.0` for Symfony 3.

Usage
=====

[](#usage)

Create a new `Menu` class extending the `AbstractMenu` for each of your menus in your `App\Menu` namespace:

```
namespace App\Menu;

use Eschmar\MenuBundle\Menu\AbstractMenu;

class TestMenu extends AbstractMenu
{
    public function generateMenu()
    {
        // create root node
        $this->root = $this->newNode('Navigation');

        // append a new node for each navigation element
        $this->root->node('Link 1');
        $this->root->node('Link 2');
        $this->root->node('Link 3');

        // multi-dimensional
        $this->root['Link 2']->node('Sublink 1');
        $this->root['Link 2']['Sublink 1']->node('Subsublink 1');

        // generate route
        $this->root['Link 3']->node('Sublink 3', null, 'acme_hello_homepage');

        // role permissions
        $this->root['Link 3']->node('Sublink 2', null, null, 'ROLE_ADMIN', array());
    }

} // END class TestMenu
```

Render the menu directly in twig:

```
{{ menu('TestMenu') }}

{# override template #}
{{ menu('TestMenu', 'test/mobile.html.twig') }}
```

# License
MIT License.
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~765 days

Total

3

Last Release

2634d ago

Major Versions

v0.2.0 → v1.0.02019-02-20

PHP version history (2 changes)v0.1.0PHP &gt;=5.3.3

v1.0.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/af4b985a4f3db3fb0b416d19be8d211087f9ccc9bc19ba55295632e77b8bc79c?d=identicon)[eschmar](/maintainers/eschmar)

---

Top Contributors

[![eschmar](https://avatars.githubusercontent.com/u/2345471?v=4)](https://github.com/eschmar "eschmar (29 commits)")

---

Tags

symfonymenu

### Embed Badge

![Health badge](/badges/eschmar-menu-bundle/health.svg)

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

###  Alternatives

[lexik/data-layer-bundle

Manipulate the Google Tag Manager Data Layer from your Symfony application.

14114.2k](/packages/lexik-data-layer-bundle)

PHPackages © 2026

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