KnpLabs/KnpMenu
Menu Library for PHP observed · 2026-08-28
Health v2 · maintenance only
74/100
- Activity 98
- Release rhythm 28
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 87.0
- age_days: 5504
- days_rel: 446
- days_push: 12
- n_releases_24m: 3
Adoption not part of the score
1394 stars · 190 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
KnpMenu is an object-oriented menu library for PHP that lets developers build and render navigation menus programmatically. It is used standalone or via KnpMenuBundle in Symfony applications, handling current-item highlighting, first/last classes, and submenus.
Use cases
- build navigation menus in PHP without hand-writing HTML templates
- render menus with current item highlighting in Symfony apps
- create nested submenus programmatically
- integrate menu rendering with Twig templates
- reuse menu definitions across multiple pages
When to choose
- you need structured, reusable navigation menus in a PHP or Symfony project
- you want automatic current-item and first/last CSS classes instead of manual templating
- you need hierarchical menus with children rendered as nested lists
When to avoid
- you only need a simple static menu that a template can hardcode
- your frontend framework builds navigation client-side
- you need a full CMS-style menu management UI
Facets
library · maturity stable
templating ui-components web-development php menus navigation symfony html-rendering php web-server
2 sources
- readme: https://github.com/KnpLabs/KnpMenu · fetched 2026-08-28 · de45448b56b1
- homepage: https://knplabs.com · fetched 2026-08-29 · 3e099e7188ae
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| KnpLabs/KnpMenu | main | 74 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem