PHPackages                             mouf/html.widgets.menu - 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. [Templating &amp; Views](/categories/templating)
4. /
5. mouf/html.widgets.menu

ActiveMouf-library[Templating &amp; Views](/categories/templating)

mouf/html.widgets.menu
======================

This package contains objects describing a menu of an application. The menu is described, but this package does not render the menu in any way. You will have to use another package to render the menu in HTML. Usually, templates will provide their own menu renderers.

v4.0.0(7y ago)1240.4k53MITPHPPHP &gt;=7.1

Since Apr 25Pushed 3y ago2 watchersCompare

[ Source](https://github.com/thecodingmachine/html.widgets.menu)[ Packagist](https://packagist.org/packages/mouf/html.widgets.menu)[ Docs](https://github.com/thecodingmachine/html.widgets.menu)[ RSS](/packages/mouf-htmlwidgetsmenu/feed)WikiDiscussions 4.0 Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (6)Used By (3)

What is this package?
=====================

[](#what-is-this-package)

This package contains base objects and interfaces to describe menus and menu items. Basically, using interfaces and objects of this package, you can describe a menu.

Menus are rendered using [Mouf's rendering system](http://mouf-php.com/packages/mouf/html.renderer/README.md).

Using the rendering system, other packages, or templates, or your project can override the HTML of the menu.

In practice
-----------

[](#in-practice)

A menu is defined using the `Menu` class. The `Menu` class can contain many `MenuItem`. Each menu item can contain many children `MenuItem`.

Mouf package
------------

[](#mouf-package)

This package is part of Mouf (), an effort to ensure good developing practices by providing a graphical dependency injection framework. Using Mouf's user interface, you can create your menu graphically, by creating instances of Menu and MenuItem.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 86.4% 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

Every ~411 days

Total

5

Last Release

2761d ago

Major Versions

v2.0.0 → 3.0.x-dev2018-10-26

3.0.x-dev → 4.0.x-dev2018-10-26

PHP version history (2 changes)2.0.x-devPHP &gt;=5.3.0

4.0.x-devPHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104771?v=4)[mouf](/maintainers/mouf)[@Mouf](https://github.com/Mouf)

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (19 commits)")[![cbalda](https://avatars.githubusercontent.com/u/6704490?v=4)](https://github.com/cbalda "cbalda (2 commits)")[![HugoAverty](https://avatars.githubusercontent.com/u/1681508?v=4)](https://github.com/HugoAverty "HugoAverty (1 commits)")

---

Tags

templatemenumouf

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mouf-htmlwidgetsmenu/health.svg)

```
[![Health](https://phpackages.com/badges/mouf-htmlwidgetsmenu/health.svg)](https://phpackages.com/packages/mouf-htmlwidgetsmenu)
```

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.6k34.7M186](/packages/phpoffice-phpword)[rize/uri-template

PHP URI Template (RFC 6570) supports both expansion &amp; extraction

420137.3M46](/packages/rize-uri-template)[larablocks/pigeon

A more flexible email message builder for Laravel 5 including chained methods, reusable message configurations, and message layout and template view management.

143.7k](/packages/larablocks-pigeon)

PHPackages © 2026

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