PHPackages                             cmatosbc/oopress-menus - 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. cmatosbc/oopress-menus

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

cmatosbc/oopress-menus
======================

Menus OOP structures and better iterators.

1.0.0(1y ago)02gpl-3.0-or-laterPHP

Since Nov 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/cmatosbc/oopress-menus)[ Packagist](https://packagist.org/packages/cmatosbc/oopress-menus)[ RSS](/packages/cmatosbc-oopress-menus/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Oopress Menus
=============

[](#oopress-menus)

Retrieve WP menus as pure data, as array or JSON. Also allows the data to be passed to a particular template in Wordpress.

[![OOPress](https://raw.githubusercontent.com/cmatosbc/oopress-cache/refs/heads/main/img/one.jpg)](https://raw.githubusercontent.com/cmatosbc/oopress-cache/refs/heads/main/img/one.jpg)

Usage
-----

[](#usage)

Usage is pretty simple. You need to instantiate the class with the menu ID or slug, then use the method fetch() to access the data. Further, the method getItems() may return the structured menu data as array or JSON (using true). Finally, the method render() passes the menu data through a template part, rendering it (in the template, the menu data can be accessed from $args\['data'\]).

```
// Create the instance for "menu-1" menu
$menuData = (new \Oopress\Menus\Fetcher('testing'))
            ->fetch()
            ->getItems(true); // Fetches menu data and returns the data in JSON (or array if not TRUE)
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

600d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/118901076?v=4)[Carlos Matos](/maintainers/cmatosbc)[@cmatosbc](https://github.com/cmatosbc)

---

Top Contributors

[![cmatosbc](https://avatars.githubusercontent.com/u/118901076?v=4)](https://github.com/cmatosbc "cmatosbc (8 commits)")

### Embed Badge

![Health badge](/badges/cmatosbc-oopress-menus/health.svg)

```
[![Health](https://phpackages.com/badges/cmatosbc-oopress-menus/health.svg)](https://phpackages.com/packages/cmatosbc-oopress-menus)
```

###  Alternatives

[mobiledetect/mobiledetectlib

Mobile\_Detect is a lightweight PHP class for detecting mobile devices. It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.

10.7k170.9M527](/packages/mobiledetect-mobiledetectlib)[illuminate/contracts

The Illuminate Contracts package.

706130.3M13.4k](/packages/illuminate-contracts)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[flow-php/etl

PHP ETL - Extract Transform Load - Abstraction

378604.0k104](/packages/flow-php-etl)[phiki/phiki

Syntax highlighting using TextMate grammars in PHP.

3693.8M57](/packages/phiki-phiki)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)

PHPackages © 2026

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