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

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

unlooped/menu-bundle
====================

Simple Menu Builder

2.5.2(1y ago)02.7k[2 PRs](https://github.com/unlooped/menu-bundle/pulls)MITPHPPHP ^7.4 || ^8.0

Since May 12Pushed 1y ago2 watchersCompare

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

READMEChangelog (9)Dependencies (9)Versions (32)Used By (0)

BETA, DON'T USE IN PRODUCTION
=============================

[](#beta-dont-use-in-production)

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

[](#installation)

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

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

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

```
$ composer require unlooped/menu-bundle
```

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

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

### Step 1: Download the Bundle

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

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

```
$ composer require unlooped/menu-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### 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 `app/AppKernel.php` file of your project:

```
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Unlooped\MenuBundle\UnloopedMenuBundle(),
        ];

        // ...
    }

    // ...
}
```

Usage
=====

[](#usage)

Create a Service which extends `AbstractMenuBuilderService`
-----------------------------------------------------------

[](#create-a-service-which-extends-abstractmenubuilderservice)

Currently only works with `create#NAME#Menu()`.

```
