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 1mo 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

23

—

LowBetter than 27% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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

545d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d97279f52b70d502ac21c0618e2822a0bae0523a7e69bb3fd33a592f21d5f06?d=identicon)[cmatosbc](/maintainers/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.7k159.4M430](/packages/mobiledetect-mobiledetectlib)[illuminate/contracts

The Illuminate Contracts package.

704122.9M10.0k](/packages/illuminate-contracts)[phiki/phiki

Syntax highlighting using TextMate grammars in PHP.

3573.0M23](/packages/phiki-phiki)[civicrm/civicrm-core

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

728272.9k17](/packages/civicrm-civicrm-core)[flow-php/etl

PHP ETL - Extract Transform Load - Abstraction

374468.4k51](/packages/flow-php-etl)[gehrisandro/tailwind-merge-php

TailwindMerge for PHP merges multiple Tailwind CSS classes by automatically resolving conflicts between them

1391.5M9](/packages/gehrisandro-tailwind-merge-php)

PHPackages © 2026

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