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

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

foreverglory/menu-bundle
========================

Symfony MenuBundle

0231PHP

Since Jan 4Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

MenuBundle
==========

[](#menubundle)

MenuBundle 基于 "knplabs/knp-menu-bundle" 进行菜单数据库存储

介绍
--

[](#介绍)

### Composer

[](#composer)

添加 `composer.json` 到你的项目依赖

```
{
    "foreverglory/menu-bundle": "dev-master"
}
```

### Kernel

[](#kernel)

添加 `Kernel` 依赖，并启用 `Bundle`

```
//app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Knp\Bundle\MenuBundle\KnpMenuBundle(),
        new Glory\Bundle\MenuBundle\GloryMenuBundle(),
        // ...
    );
}
```

### KnpMenuBundle

[](#knpmenubundle)

@see

### Install

[](#install)

create Entity extend Glory\\Bundle\\MenuBundle\\Entity\\Menu

```
//src\AppBundle\Entity\Menu
namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Glory\Bundle\MenuBundle\Entity\Menu as BaseMenu;

/**
 * @ORM\Table(name="menu")
 * @ORM\Entity
 */
class Menu extends BaseMenu
{
    //more code
}
```

configuration config.yml glory\_menu.menu\_class

```
#app/conﬁg/conﬁg.yml
glory_menu:
    # The entity created earlier
    menu_class: AppBundle\Entity\Menu
```

configuration routing.yml

```
glory_menu:
    resource: "@GloryMenuBundle/Resources/config/routing.yml"
    prefix:   /
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

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/6f2db77628f7824d4dda8968f3dd7f314800bb3ae6663d788cd6614e92623695?d=identicon)[foreverglory](/maintainers/foreverglory)

---

Top Contributors

[![foreverglory](https://avatars.githubusercontent.com/u/1069963?v=4)](https://github.com/foreverglory "foreverglory (62 commits)")

### Embed Badge

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

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

PHPackages © 2026

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