# KnpLabs/KnpMenuBundle

Object Oriented menus for your Symfony project.

Repository: https://github.com/KnpLabs/KnpMenuBundle
Canonical: https://ross.abutalabs.com/products/knpmenubundle
Homepage: http://knplabs.com
Language: PHP
License: MIT
License Family: permissive
Topics: symfony, symfony-bundle, php, bundle, menu-generator
Last push: 2026-08-24T07:23:19+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 5867, "days_push": 9, "days_rel": 276, "gap_med": 168.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1403, forks 201 (observed 2026-08-28T04:04:37.847849+00:00)

## What it is
KnpMenuBundle is a Symfony bundle that integrates the KnpMenu PHP library for building object-oriented, feature-rich navigation menus. It lets developers define menus in PHP classes and render them with templates in Symfony applications.

## Use cases
- build navigation menus in a Symfony app
- generate menus programmatically with PHP objects
- render breadcrumbs and sidebars from menu trees
- highlight the current menu item based on the route
- create reusable menus across multiple Symfony bundles

## When to choose
- you use Symfony and need structured, testable menus
- you want menu definitions in code rather than templates
- you need current-item highlighting and menu hierarchy support

## When to avoid
- you use Laravel, Rails, or another non-Symfony framework
- you only need a simple static HTML nav bar
- you prefer defining menus purely in Twig templates

## Facets
- artifact type: library
- maturity: stable
- function: templating, ui-components, routing
- domain: web-development, backend
- platform: php
- tags: symfony-bundle, menu-builder, navigation, knp-menu, php, web-server

## Member repositories
- KnpLabs/KnpMenuBundle (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:37.847849+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:38:53.593193+00:00, confidence not recorded.
  - readme: https://github.com/KnpLabs/KnpMenuBundle (fetched 2026-08-28T04:04:37.847849+00:00, sha f7c994e04f1d)
  - homepage: http://knplabs.com (fetched 2026-08-29T11:52:44.339894+00:00, sha 3e099e7188ae)
- Data as of 2026-08-30T08:39:29.467469+00:00.
