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

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

kunicmarko/simple-menu-bundle
=============================

This is a Symfony Bundle that adds menu functionality to Sonata Admin.

v1.0.0-beta(8y ago)226MITPHPPHP ^7.0

Since Aug 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/kunicmarko20/SimpleMenuBundle)[ Packagist](https://packagist.org/packages/kunicmarko/simple-menu-bundle)[ Docs](https://github.com/kunicmarko20/SimpleMenuBundle)[ RSS](/packages/kunicmarko-simple-menu-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Simple Menu Bundle
==================

[](#simple-menu-bundle)

[![Build Status](https://camo.githubusercontent.com/0d8b6a49d75b3f318a026f7a997201f8c5fcf2af059c9e60b5126ba4494bc0a3/68747470733a2f2f7472617669732d63692e6f72672f6b756e69636d61726b6f32302f53696d706c654d656e7542756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kunicmarko20/SimpleMenuBundle)[![SensioLabsInsight](https://camo.githubusercontent.com/983f508b3ef1f11e13c6f353f7eee37525036deea9bdb22ce18ee7f1dd510a22/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35346330313931312d633161382d346262612d383531622d3636623431656161636237652f6d696e692e706e67)](https://insight.sensiolabs.com/projects/54c01911-c1a8-4bba-851b-66b41eaacb7e)[![Latest Stable Version](https://camo.githubusercontent.com/15368ef80ba5ada75423b2c7be18574389b3c24020808b8d749725b050767a73/68747470733a2f2f706f7365722e707567782e6f72672f6b756e69636d61726b6f2f73696d706c652d6d656e752d62756e646c652f762f737461626c65)](https://packagist.org/packages/kunicmarko/simple-menu-bundle)[![Total Downloads](https://camo.githubusercontent.com/fd946dd8ab90b860571aa9245fb3a2e685557c60f4df87425e03716fe19d53b6/68747470733a2f2f706f7365722e707567782e6f72672f6b756e69636d61726b6f2f73696d706c652d6d656e752d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/kunicmarko/simple-menu-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/0e6d07988041618bd3a94dca53959bf3465936bf2e247bcd3651e3b8af166e3a/68747470733a2f2f706f7365722e707567782e6f72672f6b756e69636d61726b6f2f73696d706c652d6d656e752d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/kunicmarko/simple-menu-bundle)[![License](https://camo.githubusercontent.com/f140e63d6c41aeabf8e9ef89ca8235324551f8febcfb52a5d44bcd9fd603ef52/68747470733a2f2f706f7365722e707567782e6f72672f6b756e69636d61726b6f2f73696d706c652d6d656e752d62756e646c652f6c6963656e7365)](https://packagist.org/packages/kunicmarko/simple-menu-bundle)

Simple Menu Bundle adds Menu to your Symfony application and is integrated with Sonata Admin.

This bundle depends on [SonataAdminBundle](https://github.com/sonata-project/SonataAdminBundle) and [DoctrineExtensions](https://github.com/Atlantic18/DoctrineExtensions)

[![Menu List](https://user-images.githubusercontent.com/13528674/29790813-36034c38-8c3b-11e7-98fb-9b61aee22009.png)](https://user-images.githubusercontent.com/13528674/29790813-36034c38-8c3b-11e7-98fb-9b61aee22009.png)[![Menu Children List](https://user-images.githubusercontent.com/13528674/29790812-36023d2a-8c3b-11e7-9a3e-3a43feb261ac.png)](https://user-images.githubusercontent.com/13528674/29790812-36023d2a-8c3b-11e7-9a3e-3a43feb261ac.png)Documentation
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#documentation)

- [Installation](#installation)
- [How to use](#how-to-use)
- [Override Template](#override-template)

Installation
------------

[](#installation)

**1.** Add to composer.json to the `require` key

```
composer require kunicmarko/simple-menu-bundle "v1.0.0-beta"

```

**2.** Register the bundle in `app/AppKernel.php`

```
$bundles = array(
    // ...
    new KunicMarko\SimpleMenuBundle\SimpleMenuBundle(),
);

```

Add Gedmo Tree extensions mappings and if you are not using auto\_mapping add bundle mappings

```
# app/config/config.yml
   orm:
        entity_managers:
            default:
                mappings:
                    #...
                    SimpleMenuBundle: ~
                    gedmo_tree:
                        type: annotation
                        prefix: Gedmo\Tree\Entity
                        dir: "%kernel.root_dir%/../vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity"
                        alias: Gedmo
                        is_bundle: false

```

**3.** Update database

```
app/console doctrine:schema:update --force

```

**4.** Clear cache

```
app/console cache:clear

```

**5.** Install assets

```
app/console assets:install

```

How to use
----------

[](#how-to-use)

In your twig template you can render it with:

```
{{ simple_menu_render('machine_name', level) }}

```

or if you want to render it on your own you can:

```
{% set menu = simple_menu_fetch('machine_name', level) %}

```

Override template
-----------------

[](#override-template)

You can override default template from config:

```
# app/config/config.yml
simple_menu
    template:
        render: SimpleMenuBundle:Menu:render.html.twig

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3227d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13528674?v=4)[Marko Kunic](/maintainers/kunicmarko20)[@kunicmarko20](https://github.com/kunicmarko20)

---

Top Contributors

[![kunicmarko20](https://avatars.githubusercontent.com/u/13528674?v=4)](https://github.com/kunicmarko20 "kunicmarko20 (16 commits)")

---

Tags

menusonata-adminsymfonysymfony-menusymfonybundlemenu-bundlesymfony-menusimple menu bundlesonata admin menu

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)[sulu/sulu

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

1.3k1.4M196](/packages/sulu-sulu)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

51390.8k3](/packages/web-auth-webauthn-framework)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

65474.5k9](/packages/web-auth-webauthn-symfony-bundle)

PHPackages © 2026

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