PHPackages                             djgadd/themosis-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. djgadd/themosis-menu

AbandonedArchivedLibrary

djgadd/themosis-menu
====================

A package to make working with menus easier.

1.1.3(8y ago)159GPL-3.0-or-laterPHPPHP &gt;=7.0

Since May 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/djgadd/themosis-menu)[ Packagist](https://packagist.org/packages/djgadd/themosis-menu)[ RSS](/packages/djgadd-themosis-menu/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (7)Used By (0)

Themosis Cache
==============

[](#themosis-cache)

A package to make working with menus easier. Requires `keltiecochrane/themosis-illuminate` and `keltiecochrane/themosis-cache` to be setup for collections and caching. Will build menus from source and cache them "forever", will clear the menu from cache if it's updated/deleted.

Install
-------

[](#install)

Install through composer: - `composer require keltiecochrane/themosis-menu`

Register the service provider in your `theme/resources/config/providers.php` file: - `KeltieCochrane\Menu\MenuServiceProvider::class,`

Optionally register the alias in your `theme/resources/config/theme.php` file: - `'Menu' => KeltieCochrane\Menu\MenuFacade::class,`

Examples
--------

[](#examples)

```
  $menu = Menu::getByLocation('header-nav');
  $menu->name; // The menu's name
  $menu->each(function ($item) {
    $item->children; // The menu items children
    $item->descendants; // A collection of IDs for all this items descendants
    $item->active; // Boolean indicating whether this item is the current page/post/etc.
    $item->active_descendant // Boolean indicating whether a descendant is active

    // Plus all the usual WP_Post fields
  });

```

See the [Laravel docs](https://github.com/Seldaek/monolog/blob/master/doc/01-usage.md) for more info.

Helpers
-------

[](#helpers)

The following (additional) helpers are available: -

- getMenuById(int $menuId, int $activePostId = null)
- getMenuByLocation(string $location, int $activePostId = null)

To Do
-----

[](#to-do)

- Testing

Support
-------

[](#support)

This plugin is provided as is, though we'll endeavour to help where we can.

Contributing
------------

[](#contributing)

Any contributions would be encouraged and much appreciated, you can contribute by: -

- Reporting bugs
- Suggesting features
- Sending pull requests

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

3019d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f56741780f11ffb4621377059e0e8db9b09b1630a67ad3935b23c2b38791d23b?d=identicon)[djgadd](/maintainers/djgadd)

---

Tags

themosis

### Embed Badge

![Health badge](/badges/djgadd-themosis-menu/health.svg)

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

###  Alternatives

[themosis/framework

The Themosis framework.

676307.9k18](/packages/themosis-framework)[themosis/themosis

Themosis, a WordPress framework.

1.3k26.9k](/packages/themosis-themosis)[themosis/theme

The Themosis framework boilerplate theme.

10449.0k3](/packages/themosis-theme)

PHPackages © 2026

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