PHPackages                             elefant/app-menubuilder - 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. elefant/app-menubuilder

ActiveElefant-app[Admin Panels](/categories/admin)

elefant/app-menubuilder
=======================

Menu builder app for the Elefant CMS

4182PHP

Since May 1Pushed 13y ago2 watchersCompare

[ Source](https://github.com/jbroadway/menubuilder)[ Packagist](https://packagist.org/packages/elefant/app-menubuilder)[ RSS](/packages/elefant-app-menubuilder/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Menu Builder
============

[](#menu-builder)

A menu builder for the [Elefant CMS](http://www.elefantcms.com/)based on using [YAML](http://www.yaml.org/) formatting to define as many custom menus as you want.

Menu Builder then provides a set of dynamic menu objects for embedding your menus into your website through the WYSIWYG editor's Dynamic Objects dialog.

Menu Builder works as an alternative to Elefant's built-in single-tree navigation app. Editing menus as YAML files may not be for everyone, but the added flexibility will hopefully be useful to some.

Formatting
----------

[](#formatting)

Here is an example menu:

```
# This file defines a menu structure in your website.
# For formatting info, visit:
# https://github.com/jbroadway/menubuilder

menu:
  - label: Home
    page: index
    class: menu-home
  - label: Blog
    link: /blog
    class: menu-blog
  - label: Services
    page: services
    menu:
      - label: Web Design
        page: web-design
      - label: Social Media
        page: social-media
      - label: Branding
        page: branding
  - label: Contact Us
    page: contact-us
```

Each menu starts with a top-level `menu:` section.

Each section contains one or more items with the following properties:

- label - The text to display in the link.
- page - The ID of the page in the site.
- link - An external link instead of specifying an internal page.
- class - A CSS class to assign to the item in HTML tags.
- menu - A list of sub-items.

The label and either page or link are required. The rest is optional.

Menu files are saved in the `conf/menubuilder` folder as `.yml` files.

Integration
-----------

[](#integration)

You can integrate menus into your site in one of two ways:

1. In the WYSIWYG editor's Dynamic Objects dialog, you'll see a number of new objects like `Menu: Breadcrumb` and `Menu: Contextual`. These will embed different kinds of menus into your page.
2. In your layout templates, you can include a menu directly with the following tags:

    {! menubuilder/menu/breadcrumb?menu=Main !}

    {! menubuilder/menu/contextual?menu=Main !}

    {! menubuilder/menu/dropmenu?menu=Main !}

    {! menubuilder/menu/single?menu=Main !}

    {! menubuilder/menu/sitemap?menu=Main !}

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

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://avatars.githubusercontent.com/u/87886?v=4)[John de Plume](/maintainers/jbroadway)[@jbroadway](https://github.com/jbroadway)

---

Top Contributors

[![jbroadway](https://avatars.githubusercontent.com/u/87886?v=4)](https://github.com/jbroadway "jbroadway (14 commits)")

### Embed Badge

![Health badge](/badges/elefant-app-menubuilder/health.svg)

```
[![Health](https://phpackages.com/badges/elefant-app-menubuilder/health.svg)](https://phpackages.com/packages/elefant-app-menubuilder)
```

PHPackages © 2026

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