PHPackages                             devilcius/admin-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. [Admin Panels](/categories/admin)
4. /
5. devilcius/admin-menu-bundle

ActiveSymfony-bundle[Admin Panels](/categories/admin)

devilcius/admin-menu-bundle
===========================

Extended menu to use with Symfony2 and sonata-admin

125PHP

Since Oct 3Pushed 12y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

AdminMenuBundle
===============

[](#adminmenubundle)

[![Build Status](https://camo.githubusercontent.com/a4291ddd92d0ae97f8b39087262761cc633eb12247d144632a73750a0127c158/68747470733a2f2f7472617669732d63692e6f72672f646576696c636975732f41646d696e4d656e7542756e646c652e706e67)](https://travis-ci.org/devilcius/AdminMenuBundle)

This is based on [**AdminBundle**](https://github.com/vincenttouzet/AdminBundle) and extends the [**SonataAdminBundle**](http://sonata-project.org/bundles/admin/master/doc/index.html). It offers the possibility to manage the menu from other bundle.

See [**how to install and configure**](https://github.com/devilcius/AdminMenuBundle/blob/master/Resources/doc/installation.md)

Manage menu
-----------

[](#manage-menu)

The SonataAdminBundle main menu (on top of all Admin pages) is generated with a list of Admin objects.

This bundle extends the menu and allows everyone to modify via the service container.

The admin menu is generated with [**KnpMenu**](https://github.com/KnpLabs/KnpMenu) library. By default it retrieves all admin groups and labels Admin (like the default menu renderer).

To modify the admin menu just register a listener :

```
namespace devilcius\TestBundle\EventListener;

class MenuListener
{
    public function createMenu($event)
    {
        $menu = $event->getMenu();

        // create a new group
        $menu->addChild('Audit', array('translationDomain'=>'MyDomain'));

        // add a divider to System group
        $menu['Audit']->addDivider();
        // ad a nav header
        $menu['Audit']->addNavHeader('SubMenu');

        // add list child (with a route declared in routing.yml)
        $menu['Audit']->addChild('List', array('uri' => $this->router->generate('get_audit_list')));

    }
}
```

And just declare the listener in your services.yml file.

```
services:
    kernel.listener.admin_menu_listener:
        class: devilcius\TestBundle\EventListener\MenuListener
        tags:
            - { name: kernel.event_listener, event: admin.menu.create, method: createMenu }
        arguments: [@router]
```

This bundle use a custom MenuItem class `devilcius\AdminMenuBundle\Menu\MenuItem` that extends the `Knp\Menu\MenuItem`. It add new functions (dividers, nav headers, ...)

Controllers used in the the admin menu must extend the AdminMenuController

```
use devilcius\AdminMenuBundle\Controller\AdminMenuController as Controller;
class AuditController extends Controller
{
[...]
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

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

---

Top Contributors

[![devilcius](https://avatars.githubusercontent.com/u/504695?v=4)](https://github.com/devilcius "devilcius (20 commits)")

### Embed Badge

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

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

###  Alternatives

[jeroennoten/laravel-adminlte

Easy AdminLTE integration with Laravel

4.0k4.8M43](/packages/jeroennoten-laravel-adminlte)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[bezhansalleh/filament-exceptions

A Simple &amp; Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel

193195.9k13](/packages/bezhansalleh-filament-exceptions)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)

PHPackages © 2026

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