PHPackages                             az-iar/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. az-iar/menu

ActiveLibrary

az-iar/menu
===========

Menu builder

3.0(2y ago)49.3k↓30%MITPHPPHP ^8.0 | ^8.1 | ^8.2

Since Nov 27Pushed 2y ago1 watchersCompare

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

READMEChangelog (6)Dependencies (2)Versions (9)Used By (0)

Menu
====

[](#menu)

Simple menu builder for Laravel

### Installation

[](#installation)

Run this to install:

```
composer require az-iar/menu
```

### How To Use

[](#how-to-use)

You can generate menu item using `php artisan make:menu Dashboard`. It will create a menu item like this

```
namespace App\Menus;

class Dashboard {
    use AsMenuItem;

    public function href(): string
    {
        // TODO: Implement href() method.
    }

    public function title(): string
    {
        // TODO: Implement title() method.
    }

    // Override default method from `AsMenuItem` trait
    public function authorize(): bool
    {
        return auth()->check() && auth()->user()->can('view-dashboard');
    }
    ...
}
```

Then create menu in `AppServiceProvider` inside `boot` method

```
use Inneuron\NavMenu\Facades\Menu;
use Inneuron\Menu\Concerns\AsMenuItem;

// Add menu item

// Default menu
$menu = Menu::create()
    ->addItem(new Dashboard)
    ->addItem(new Users)
    ->addItem(new Settings);

// Another menu
$menu = Menu::create('profile')
    ->addItem(new MyProfile)
    ->addItem(new Notifications)
    ->addItem(new Settings);
```

Use it like this

```
use Inneuron\NavMenu\Facades\Menu;

// Output as array
Menu::get();
Menu::get('profile');

// Render in HTML
Menu::render();
Menu::render('profile');
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

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

Recently: every ~110 days

Total

8

Last Release

1092d ago

Major Versions

1.x-dev → 3.02023-05-23

PHP version history (3 changes)1.0.0PHP ^8.0

1.0.3PHP ^8.0 | ^8.1

1.x-devPHP ^8.0 | ^8.1 | ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e8852e9a2a452f221c550705bdca7f522a2f28df6c5022c171adb48f29cf394?d=identicon)[az-iar](/maintainers/az-iar)

---

Top Contributors

[![az-iar](https://avatars.githubusercontent.com/u/1249596?v=4)](https://github.com/az-iar "az-iar (17 commits)")

### Embed Badge

![Health badge](/badges/az-iar-menu/health.svg)

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

PHPackages © 2026

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