PHPackages                             vmsouza/laravel-bootstrap-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. vmsouza/laravel-bootstrap-menu

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

vmsouza/laravel-bootstrap-menu
==============================

A packages for create bootstrap menu dynamically.

017PHP

Since Apr 3Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Bootstrap Menu Helper
=============================

[](#laravel-bootstrap-menu-helper)

Laravel Bootstrap Menu are helper to create dynamic menu within laravel. This helper temporary tested with [SB Admin 2](https://github.com/BlackrockDigital/startbootstrap-sb-admin-2). So please be patient for further development.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require vmsouza/laravel-bootstrap-menu:dev-master

```

or add

```
"vmsouza/laravel-bootstrap-menu": "dev-master"

```

to the require section of your `composer.json` file.

Usage
=====

[](#usage)

You can use this helper in your view. It also support blade template.

Breadcrumb Skeleton
-------------------

[](#breadcrumb-skeleton)

This helper consist of this following code.

```
use vmsouza\LaravelMenu\Menu as Menu;

// ..........

$menu = new Menu; // class
// render menu
$menu->render(
        'options' => [...] // optional
        'items' => [...]  // required
    );

```

Options
-------

[](#options)

This is optional parameter. You can pass this following params in options.

- `divClass` param are div class for your Bootstrap menu. Default value of divClass is 'sidebar-nav navbar-collapse'. You can change your div class with `divClass` param.
- `ulClass` param are ul class for your Bootstrap menu. Default value of ulClass is 'nav'. You can change your ul class with `ulClass` param.
- `ulId` param are ul id for your Bootstrap menu. Default value of ulId is 'side-menu'. You can change your ul id with `ulId` param.

The following code as an example.

```
$menu->render(
        'options' => [
            'ulId' => 'side-menu'
        ],
        'items' => [...]  // required
    );

```

Items
-----

[](#items)

`items` params are required to render menu. `items` is an array. This helper support three menu level. You can pass this following params in `items`.

- `label` is a string. This param use for label of your menu. This param is required for `items`
- `url` is a string. This param use for link of your menu. You don't need to use 'url()' helper. This param is required unless this items are header of next level menu (dropdown)
- `icon` is a string. This param use for icon of your menu. Default value of `icon` is `fa fa-circle-o`. This param is optional, you can change the icon of your menu with `icon` param.
- `visible` is a bool. This param use for visibility of your menu. Default value of `visible` is 'true'. This param is optional, you can change visibility of your menu with `visible` param
- `items` is an array. This param use for add another level of your menu. You can use all of items params in this param. If `items` param exist, `url` param will be ignored.

The following code are complete example of breadcrumb item

```
use vmsouza\LaravelMenu\Menu as Menu;

$menu = new Menu; // class

$menu->render(
        'options' => [
            'ulId' => 'side-menu'
        ],
        'items' => [
            ['label' => 'Dashboard', 'icon' => 'fa fa-home', 'url' => '/'],
            [
                'label' => 'First Level 1',
                'visible' => true,
                'items' => [
                    ['label' => 'Second Level -1', 'url' => '/renja'],
                    ['label' => 'Second Level -2', 'url' => '/renja'],
                ]
            ],
            [
                'label' => 'First Level 2',
                'items' => [
                    [
                        'label' => 'Second Level 1',
                        'visible' => true,
                        'items' => [
                            ['label' => 'Third Level 1', 'url' => '/ranwalrkpd'],
                            ['label' => 'Third Level 2', 'url' => '/ranwalrkpd'],
                        ]
                    ],
                ]
            ],
        ]
    );

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ac58a56696a82eed185b7a052691df4a2d4c758a8190f9e0f68e489ce73c4072?d=identicon)[vmsouza](/maintainers/vmsouza)

---

Top Contributors

[![vmsouza](https://avatars.githubusercontent.com/u/16540171?v=4)](https://github.com/vmsouza "vmsouza (2 commits)")

### Embed Badge

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

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

PHPackages © 2026

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