PHPackages                             kalnoy/illuminate-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. kalnoy/illuminate-menu

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

kalnoy/illuminate-menu
======================

A menu builder for Laravel using Bootstrap's markup.

v1.3.5(6y ago)2514.3k↓50%31MITPHPPHP &gt;=5.4.0

Since Jan 16Pushed 6y ago5 watchersCompare

[ Source](https://github.com/lazychaser/illuminate-menu)[ Packagist](https://packagist.org/packages/kalnoy/illuminate-menu)[ RSS](/packages/kalnoy-illuminate-menu/feed)WikiDiscussions v1.x Synced 1mo ago

READMEChangelogDependencies (3)Versions (16)Used By (1)

Laravel Menu Builder
--------------------

[](#laravel-menu-builder)

**A menu builder for Laravel 4-5 using [Bootstrap](http://getbootstrap.com "Twitter Bootstrap")'s markup.**

[![Build Status](https://camo.githubusercontent.com/faf7a73854eacb65845b28b34146906829dc0ca8933ca68c477e94ae3bd0d75f/68747470733a2f2f7472617669732d63692e6f72672f6c617a796368617365722f696c6c756d696e6174652d6d656e752e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/lazychaser/illuminate-menu)[![Latest Stable Version](https://camo.githubusercontent.com/61ec56ab77eb3d3eafeb1dda84be70ae7852afdb75748c7df3f665514d647444/68747470733a2f2f706f7365722e707567782e6f72672f6b616c6e6f792f696c6c756d696e6174652d6d656e752f76657273696f6e2e706e67)](https://packagist.org/packages/kalnoy/illuminate-menu)[![Total Downloads](https://camo.githubusercontent.com/20bc8198a63f73e1b2844f4add15cb1d87a94732fef9450e715ba885b7b0dbf9/68747470733a2f2f706f7365722e707567782e6f72672f6b616c6e6f792f696c6c756d696e6174652d6d656e752f642f746f74616c2e706e67)](https://packagist.org/packages/kalnoy/illuminate-menu)

**[Документация на Русском](README-RU.md)**

Note that this package is shipped with no styles nor scripts, you have to download them manually from [Twitter Bootstrap's](http://getbootstrap.com "Twitter Bootstrap") site.

Installation
============

[](#installation)

Install using Composer:

```
composer require kalnoy/illuminate-menu:~1.0

```

Add a service provider:

```
'providers' => [
    'Illuminate\Html\MenuServiceProvider',
],
```

And a facade:

```
'aliases' => [
    'Menu' => 'Illuminate\Support\Facades\Menu',
],
```

Documentation
=============

[](#documentation)

Rendering a menu:

```
{!! Menu::render($items, $attributes) !!}
```

Where `$attributes` is optional array of html attributes for `ul` element.

Rendering a list of menu items:

```
{!! Menu::items($items) !!}
```

Rendering a single menu item:

```
{!! Menu::item($label, $url) !!}
{!! Menu::item($label, $options) !!}
{!! Menu::item($options) !!}
```

See a list of available options [below](#item-options).

Basic example:

```
Menu::render([
    'Link to url' => 'bar',
    'Link to external url' => 'http://bar',
    [ 'label' => 'Link to url', 'url' => 'bar' ],
    'Link to route' => [ 'route' => [ 'route.name', 'foo' => 'bar' ] ],
]);
```

Rendering an item with a drop down menu:

```
{!! Menu::item([
    'label' => 'Settings',
    'icon' => 'wrench',
    'items' => [
        'Foo' => 'bar',
        '-', // divider
        'Logout' => [ 'route' => 'logout_path' ],
    ],
]) !!}
```

Controlling whether the item is visible:

```
{!! Menu::item([
    'label' => 'Foo',
    'url' => 'bar',
    'visible' => function () { return Config::get('app.debug'); },
] !!}
```

#### Item options

[](#item-options)

You can specify an array of following options:

- `label` is a label of the item, automatically translated, so you can specify lang string id
- `url` is the url which can be a full URI or local path
- `route` to specify a route, possibly with parameters
- `secure`; specify `true` to make `url` be secure (doesn't affect `route` option)
- `items` is an array of items for drop down menu
- `linkOptions` is an array of additional link attributes

Changing the state of the item:

- `visible` is a boolean value or closure to specify whether the item is visible
- `active` is a boolean value or closure to specify whether to add `active` class to item; if not specified, determined automatically based on current url
- `disabled` is a boolean value or closure to specify whether the menu item is disabled

Presentation options:

- `icon` is a glyphicon id, i.e. `pencil`
- `badge` is a value for badge (scalar or closure)
- and any other parameter that will be rendered as an attribute for `` element.

### Customization

[](#customization)

Though this menu builder intended to be used together with bootstrap markup, you can customize it however you like by extending `Illuminate\Html\MenuBuilder` class and overriding base methods.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

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

Recently: every ~154 days

Total

15

Last Release

2396d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/13821b295894e4000b282ce9c82eb23d1e897cf787d2532a5295bd0d3df5a804?d=identicon)[lazychaser](/maintainers/lazychaser)

---

Top Contributors

[![lazychaser](https://avatars.githubusercontent.com/u/2094856?v=4)](https://github.com/lazychaser "lazychaser (23 commits)")

---

Tags

laravelmenubootstrap

### Embed Badge

![Health badge](/badges/kalnoy-illuminate-menu/health.svg)

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

###  Alternatives

[anahkiasen/former

A powerful form builder

1.4k1.4M14](/packages/anahkiasen-former)[akaunting/laravel-menu

Menu and sidebar management package for Laravel

38233.8k](/packages/akaunting-laravel-menu)[nguyendachuy/laravel-menu

Laravel Menu Builder | Drag &amp; Drop | Bootstrap | Laravel 7 | Laravel 8 | Laravel 9 | Laravel 10 | Laravel 11 | Laravel 12

162.2k](/packages/nguyendachuy-laravel-menu)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[rinvex/laravel-menus

Rinvex Menus is a simple menu builder package for Laravel, that supports hierarchical structure, ordering, and styling with full flexibility using presenters for easy styling and custom structure of menu rendering.

294.0k20](/packages/rinvex-laravel-menus)

PHPackages © 2026

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