PHPackages                             amphibee/menu-item-type-maker - 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. amphibee/menu-item-type-maker

ActiveLibrary

amphibee/menu-item-type-maker
=============================

Wrapper for the Menu Item Types plugin (https://fr.wordpress.org/plugins/menu-item-types)

1.1(3y ago)33652[1 issues](https://github.com/AmphiBee/MenuItemTypeMaker/issues)[1 PRs](https://github.com/AmphiBee/MenuItemTypeMaker/pulls)MITPHPPHP ^7.4 || ^8.0CI failing

Since Oct 10Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/AmphiBee/MenuItemTypeMaker)[ Packagist](https://packagist.org/packages/amphibee/menu-item-type-maker)[ RSS](/packages/amphibee-menu-item-type-maker/feed)WikiDiscussions main Synced 1mo ago

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

Menu Item Type Maker
====================

[](#menu-item-type-maker)

> Register menu item type with object oriented PHP.

Menu Item Type Maker provides an object oriented API to register menu item type with the [Menu Item Types plugin](https://fr.wordpress.org/plugins/menu-item-types).

- [Installation](#installation)
- [Register a menu item type](#register-a-menu-item-type)

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

[](#installation)

Require this package, with Composer, in the root directory of your project.

```
composer require amphibee/menu-item-type-maker
```

Download the [Menu Item Types plugin](https://fr.wordpress.org/plugins/menu-item-types) and put it in either the `plugins` or `mu-plugins` directory. Visit the WordPress dashboard and activate the plugin.

Register a menu item type
-------------------------

[](#register-a-menu-item-type)

### The method way

[](#the-method-way)

Use the `MenuItemType::make()` function to register a new menu item type. Below you'll find an example of a menu item registration. Currently, this wrapper supports classic PHP, twig and blade views.

**With the default ACF plugin and WordPress classic template**

```
use AmphiBee\MenuItemTypeMaker\Facades\MenuItemType;

MenuItemType::make('Card', 'card')
            ->setIcon('path/to/my/icon.svg')
            ->setView('parts/nav/item-types/card.php')
            ->setFieldGroup('path/to/acf/field-group.php');
```

**With [Extended ACF](https://github.com/vinkla/extended-acf)** and a Blade view

```
use AmphiBee\MenuItemTypeMaker\Facades\MenuItemType;
use Extended\ACF\Fields\Image;
use Extended\ACF\Fields\Text;

MenuItemType::make('Card', 'card')
            ->setIcon('

    ')
            ->setView('parts/nav/item-types/card')
            ->setFields([
                Image::make('Image'),
                Text::make('Title'),
            ]);
```

### The extended way

[](#the-extended-way)

```
use AmphiBee\MenuItemTypeMaker\Contracts\MenuItemAbstract;
use Extended\ACF\Fields\Image;
use Extended\ACF\Fields\Text;

class CardMenuProvider extends MenuItemAbstract
{
    protected $label = 'Card';
    protected $slug = 'card';
    protected $view = 'parts/nav/item-types/card.twig';
    protected $icon = '

    ';

    protected function getFields(): array
    {
        return [
            Image::make('Image'),
            Text::make('Title'),
        ];
    }
}
```

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance57

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.5% 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 ~45 days

Total

2

Last Release

1262d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8435080f3e74b629258f291a62cb72aa9d63ee44d74e588f594dc6378c328fa2?d=identicon)[amphibee](/maintainers/amphibee)

---

Top Contributors

[![ogorzalka](https://avatars.githubusercontent.com/u/149651?v=4)](https://github.com/ogorzalka "ogorzalka (6 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (3 commits)")[![lhall-amphibee](https://avatars.githubusercontent.com/u/15910616?v=4)](https://github.com/lhall-amphibee "lhall-amphibee (1 commits)")[![qhonnart-dot](https://avatars.githubusercontent.com/u/235116810?v=4)](https://github.com/qhonnart-dot "qhonnart-dot (1 commits)")

---

Tags

wordpressmenuwpamphibeeitem

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/amphibee-menu-item-type-maker/health.svg)

```
[![Health](https://phpackages.com/badges/amphibee-menu-item-type-maker/health.svg)](https://phpackages.com/packages/amphibee-menu-item-type-maker)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k441.8k2](/packages/roots-bedrock)[ffraenz/private-composer-installer

A composer install helper for private packages

2331.7M5](/packages/ffraenz-private-composer-installer)[wecodemore/wpstarter

Composer plugin to easily build WordPress websites entirely managed via Composer.

253195.2k5](/packages/wecodemore-wpstarter)[gotoandplay/gravityforms-composer-installer

A composer install helper for Gravity Forms

31389.9k](/packages/gotoandplay-gravityforms-composer-installer)[seravo/seravo-plugin

Enhances WordPress with Seravo.com specific features and integrations

40162.2k1](/packages/seravo-seravo-plugin)[devgeniem/wp-sanitize-accented-uploads

Replaces accents from future uploads and has wp-cli command which you can use to sanitize current content.

2798.4k5](/packages/devgeniem-wp-sanitize-accented-uploads)

PHPackages © 2026

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