PHPackages                             hoangphison/laravel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hoangphison/laravel-menu

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

hoangphison/laravel-menu
========================

Html menu generator for Laravel

1.0.0(8y ago)09MITPHPPHP &gt;=5.6

Since Nov 28Pushed 8y agoCompare

[ Source](https://github.com/hoangphison/laravel-menu)[ Packagist](https://packagist.org/packages/hoangphison/laravel-menu)[ Docs](https://github.com/hoangphison/laravel-menu)[ RSS](/packages/hoangphison-laravel-menu/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (7)Versions (4)Used By (0)

Html Menu Generator for Laravel
===============================

[](#html-menu-generator-for-laravel)

[![Build Status](https://camo.githubusercontent.com/e1369ae30c4a015e5e3b54dd668d7bf447c5d8aca71bcfea241dd4ad2c9c8576/68747470733a2f2f7472617669732d63692e6f72672f686f616e67706869736f6e2f6c61726176656c2d6d656e752e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hoangphison/laravel-menu)[![StyleCI](https://camo.githubusercontent.com/87f2826febe5124e556d2dd7d0c34663034e49f7c1d5a7ec475dadf8767ece0c/68747470733a2f2f7374796c6563692e696f2f7265706f732f3131313930303232352f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/111900225)

This is the Laravel version of [our menu package](https://github.com/hoangphison/menu) adds some extras like convenience methods for generating URLs and macros.

Documentation is available at .

Upgrading from version 1? There's a [guide](https://github.com/spatie/laravel-menu#upgrading-to-20) for that!

```
Menu::macro('main', function () {
    return Menu::newMenu()
        ->action('HomeController@index', 'Home')
        ->action('AboutController@index', 'About')
        ->action('ContactController@index', 'Contact')
        ->setActiveFromRequest();
});
```

```

    {!! Menu::main() !!}

```

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource).

Install
-------

[](#install)

You can install the package via composer:

```
$ composer require hoangphison/laravel-menu
```

Usage
-----

[](#usage)

Documentation is available at .

Upgrading to 2.0
----------------

[](#upgrading-to-20)

Upgrading to 2.0 should be pretty painless for most use cases.

- Link builder methods have been renamed and now have a `to` prefix: `Link::toAction`, `Link::toRoute` and `Link::toUrl`.
- See `hoangphison/menu`'s [upgrade guide](https://github.com/spatie/menu#upgrading-to-20) for more.

### New features...

[](#new-features)

- Added: Added a `View` item implementation to use blade views as menu items

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Postcardware
------------

[](#postcardware)

You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium.

We publish all received postcards [on our company website](https://spatie.be/en/opensource/postcards).

Credits
-------

[](#credits)

- [Sebastian De Deyne](https://github.com/sebastiandedeyne)
- [All Contributors](../../contributors)

Support us
----------

[](#support-us)

Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource).

Does your business depend on our contributions? Reach out and support us on [Patreon](https://www.patreon.com/spatie). All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 55.2% 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

3086d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/516402738c16a9d7707d638d399b4b2c40cfc27776e8d5e25eea26ee58265b9f?d=identicon)[sonhp](/maintainers/sonhp)

---

Top Contributors

[![sebastiandedeyne](https://avatars.githubusercontent.com/u/1561079?v=4)](https://github.com/sebastiandedeyne "sebastiandedeyne (80 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (53 commits)")[![ccsliinc](https://avatars.githubusercontent.com/u/5481458?v=4)](https://github.com/ccsliinc "ccsliinc (3 commits)")[![MasterBratac](https://avatars.githubusercontent.com/u/1082002?v=4)](https://github.com/MasterBratac "MasterBratac (2 commits)")[![hoangphison](https://avatars.githubusercontent.com/u/9270621?v=4)](https://github.com/hoangphison "hoangphison (2 commits)")[![vmitchell85](https://avatars.githubusercontent.com/u/1248035?v=4)](https://github.com/vmitchell85 "vmitchell85 (1 commits)")[![cretueusebiu](https://avatars.githubusercontent.com/u/1517945?v=4)](https://github.com/cretueusebiu "cretueusebiu (1 commits)")[![Omranic](https://avatars.githubusercontent.com/u/406705?v=4)](https://github.com/Omranic "Omranic (1 commits)")[![smart-one](https://avatars.githubusercontent.com/u/8808096?v=4)](https://github.com/smart-one "smart-one (1 commits)")[![akoepcke](https://avatars.githubusercontent.com/u/5311185?v=4)](https://github.com/akoepcke "akoepcke (1 commits)")

---

Tags

spatielaravel-menu

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hoangphison-laravel-menu/health.svg)

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

###  Alternatives

[spatie/laravel-menu

Html menu generator for Laravel

9812.8M10](/packages/spatie-laravel-menu)[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M626](/packages/spatie-laravel-data)[spatie/laravel-enum

Laravel Enum support

3655.4M31](/packages/spatie-laravel-enum)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[spatie/laravel-feed

Generate rss feeds

9743.6M28](/packages/spatie-laravel-feed)[spatie/laravel-referer

Keep a visitor's original referer in session

532797.4k6](/packages/spatie-laravel-referer)

PHPackages © 2026

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