PHPackages                             flexpress/component-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. flexpress/component-menu

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

flexpress/component-menu
========================

Menus for WordPress

v1.0.3(11y ago)085PHP

Since Aug 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/FlexPress/component-menu)[ Packagist](https://packagist.org/packages/flexpress/component-menu)[ RSS](/packages/flexpress-component-menu/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (5)Used By (0)

FlexPress menu helpers component
================================

[](#flexpress-menu-helpers-component)

Install via Pimple
------------------

[](#install-via-pimple)

```
$pimple["menu"] = function() {
  return new PostTypeMenu();
};

```

Usage
-----

[](#usage)

```
$defaults = array(

  'starting_level' => 1,
  'post_type' => 'page',
  'post_id' => $GLOBALS['post']->ID,
  'sudo_items' => array(),
  'force_current' => null,
  "recurse" => true

);

$pimple["menu"]->output($defaults);

```

Options
-------

[](#options)

#### starting\_level

[](#starting_level)

This is what level the meny should start displaying on, for example if you have Careers &gt; Vacancies &gt; Vacancy listings and you set the level as 1(default) then it would display Vacancies and skip the Careers level.

#### post\_type

[](#post_type)

This option allows you to specify what post type you want to use, defaults to page

#### post\_id

[](#post_id)

This option lets you change the post\_id that is used to get the ancestors and is also used to set the current page in the menu.

#### sudo\_items

[](#sudo_items)

This option allows you to create sudo menu items, an example config would look like this:

```
$args['sudo_items'] = array(

  123 => array(
    "id" => -1,
    "title" => "Some random link",
    "link" => "/some/random/link",
  )

);

```

This would add a page with the title Some random link, which links to /some/random/link under the item in the menu that has the id 123.

#### force\_current

[](#force_current)

You can use this option to speficy what the current link is, this is a post\_id

#### recurse

[](#recurse)

You can turn off recurse to make the menu not recurse and just output the current level.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity66

Established project with proven stability

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 ~29 days

Total

4

Last Release

4208d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b794650fae4ab8d86e8550fa2e0cd8658323e07a8d78b3e96d0bc373bc88d2a?d=identicon)[timperry](/maintainers/timperry)

### Embed Badge

![Health badge](/badges/flexpress-component-menu/health.svg)

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

###  Alternatives

[olivestudio/craft-olivemenus

A powerful menus plugin for Craft 4 built for the need of simplicity and flexibility

3918.9k1](/packages/olivestudio-craft-olivemenus)[piedweb/text-spinner

Generate content from a spinned text (content spinning via spinning tool ak rephraser)

2419.5k](/packages/piedweb-text-spinner)

PHPackages © 2026

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