PHPackages                             abuyoyo/adminmenupage - 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. abuyoyo/adminmenupage

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

abuyoyo/adminmenupage
=====================

WordPress admin menu page helper class

0.42(2mo ago)5243↓50%2BSD-3-ClausePHPPHP &gt;=8.0

Since Aug 23Pushed 2mo ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (38)Used By (0)

WPHelper \\ AdminMenuPage
=========================

[](#wphelper--adminmenupage)

> Helper class for simple admin menu page registration in WordPress.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0
- [Composer](https://getcomposer.org/)
- [WordPress](https://wordpress.org)

Installation
------------

[](#installation)

Install with [Composer](https://getcomposer.org/) as a library.

```
// Require the Composer autoloader anywhere in your code.
require __DIR__ . '/vendor/autoload.php';
```

WPHelper\\AdminMenuPage uses [PSR-4](https://www.php-fig.org/psr/psr-4/) to autoload.

OR

Install as WordPress plugin and activate.

Basic Usage
-----------

[](#basic-usage)

```
// Import AdminPage.
use WPHelper\AdminPage;

// Register the admin menu page.
$args = [
    'title' => 'The Title of My Page', // title - passed to add_menu_page
    'menu_title' => 'Page Title', // menu_title - passed to add_menu_page (optional - will use title if none provided)
    'capability' => 'manage_options', // capability - passed to add_menu_page (optional - will default to 'manage_options')
    'slug' => 'my_page', // slug - passed to add_menu_page
    'template' => 'tpl/my_admin_page.php', // template - include file to print the page. wrapped in callback and passed to add_menu_page
    'parent' => 'parent_page_slug'; // optional - slug of parent page if creating submenu
    'icon_url' => $icon_url; // optional - icon url passed to add_menu_page/add_submenu_page
    'position' => 4; // optional - passed to add_menu_page
    'scripts' => [ // optional - script parameters passed to enqueue_scripts. Will only enqueue scripts on admin page
        [ 'script_handle', 'js/my_script.js', ['jquery'], false, true ],
        [ 'another_script', 'js/my_other_script.js', ['jquery', 'script_handle'], false, true ]
    ];
];

// Register the admin menu page.
$admin_menu_page = new AdminPage( $args );

// That's it. We're done.
// This function can be called from anywhere. No need to wrap in any hook.
```

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance91

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

Every ~66 days

Recently: every ~134 days

Total

37

Last Release

72d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/973642e65a5584b10d7285df904ea7e52994714dab348eef12ec3bc9b5ad6cc5?d=identicon)[abuyoyo](/maintainers/abuyoyo)

---

Top Contributors

[![abuyoyo](https://avatars.githubusercontent.com/u/24979061?v=4)](https://github.com/abuyoyo "abuyoyo (293 commits)")

### Embed Badge

![Health badge](/badges/abuyoyo-adminmenupage/health.svg)

```
[![Health](https://phpackages.com/badges/abuyoyo-adminmenupage/health.svg)](https://phpackages.com/packages/abuyoyo-adminmenupage)
```

###  Alternatives

[yavin/symfony-form-tree

create select field with indentation for tree structure

1591.1k1](/packages/yavin-symfony-form-tree)[spatie/laravel-help-space

Integrate Helpspace in your Laravel app

2333.7k](/packages/spatie-laravel-help-space)

PHPackages © 2026

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