Download the PHP package unlooped/menu-bundle without Composer
On this page you can find all versions of the php package unlooped/menu-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package menu-bundle
BETA, DON'T USE IN PRODUCTION
Installation
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
Applications that don't use Symfony Flex
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:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
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:
Usage
Create a Service which extends AbstractMenuBuilderService
Currently only works with create#NAME#Menu()
.
Available Options and Defaults (all optional)
Menus with Submenus:
Render Menu:
with options:
Render Breadcrumbs
Hide or Show
Use either the HideInMenu
or ShowInMenu
annotation on the route method in your controller:
Hides the link for everybody:
Hides Menu only for users with role ROLE_GUEST
OR ROLE_USER
Show Menu only for users with role ROLE_ADMIN
OR ROLE_USER
All versions of menu-bundle with dependencies
php Version ^7.4 || ^8.0
symfony/options-resolver Version ^4.4 || ^5.4 || ^6.0
symfony/http-kernel Version ^4.4 || ^5.4 || ^6.0
symfony/dependency-injection Version ^4.4 || ^5.4 || ^6.0
symfony/config Version ^4.4 || ^5.4 || ^6.0
symfony/http-foundation Version ^4.4 || ^5.4 || ^6.0
symfony/routing Version ^4.4 || ^5.4 || ^6.0
symfony/security-bundle Version ^4.4 || ^5.4 || ^6.0
symfony/twig-bundle Version ^5.4 || ^6.1