PHPackages                             byte-artist/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. byte-artist/menu-bundle

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

byte-artist/menu-bundle
=======================

Provides a configurable symfony and twig compatible menu for frontend application

0.1(4y ago)1241MITPHPPHP &gt;=7.4CI failing

Since Jan 23Pushed 4y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (14)Versions (2)Used By (0)

Overview:
=========

[](#overview)

**menu-bundle** is a symfony bundle to display a menu according to the configuration stored in menu.yaml. routes stored under path and known to the system are recognized and displayed as "active", if this page is currently active. labels of the menu items are translated if they are stored in the translations.

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

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require byte-artist/menu-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Install the Bundle

[](#step-1-install-the-bundle)

Open a command console, enter your project directory and execute the following command to install the latest stable version of this bundle:

```
$ composer require byte-artist/menu-bundle
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    ByteArtist\MenuBundle\MenuBundle::class => ['all' => true],
];
```

Configuration
=============

[](#configuration)

Example:

```
menu:
    type: default
    brand_name: Brand Name
    use_orig_css: true
    use_orig_js: true
    pages:
        label_home:
            path: existing_route
        label_user:
            path: label_user_index
            pages:
                label_user_create:
                    path: route_user_create
                label_user_edit:
                    path: route_user_edit
        label_admin:
            path: #
            pages:
                label_admin_overview:
                    path: route_admin_index
                label_admin_edit:
                    path: route_admin_edit
        label_contact:
            path: route_content
        label_imprint: https://www.byte-artist.de/imprint
```

- type: possible types: div, list, bootstrap and default (default is list)
- brand\_name: Brand name which is displayed in the bootstrap menu (bootstrap type only)
- use\_orig\_css: Flag to control whether the css code delivered with the bundle should be used, if false, you have to provide it yourself
- use\_orig\_js: Flag to control whether the javascript code delivered with the bundle should be used, if false, you have to provide it yourself
- pages: list of the structure belonging to the menu
    - route\_name: name of the menu item, if it exists in the translations it will be translated, otherwise the item will just be displayed as specified here

        \[

        - path: name to an existing route of an action, a normal url or just a '#' is also possible.
        - pages: optional, any subpages

        \]

Usage
=====

[](#usage)

To display the menu, it is sufficient to call the Twig function `menu` in a Twig template, wherever it is to be displayed:

```
// layout.html.twig
{{ menu() }}

```

Troubleshooting
===============

[](#troubleshooting)

if for some reason the symfony repository for the contrib recipes is not available, add the following lines in your composer.json:

```
"extra": {
    "symfony": {
        "endpoint": [
            "https://api.github.com/repos/mastercad/symfony-recipes/contents/index.json",
            "flex://defaults"
        ]
    }
}

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1574d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/004fea8649260a7ec17eef91f8fd84956359859b16fdb482db33a460c5e0654a?d=identicon)[mastercad](/maintainers/mastercad)

---

Top Contributors

[![mastercad](https://avatars.githubusercontent.com/u/3657702?v=4)](https://github.com/mastercad "mastercad (18 commits)")

---

Tags

generatormenunavigation

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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