PHPackages                             dowilcox/knp-menu-laravel - 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. dowilcox/knp-menu-laravel

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

dowilcox/knp-menu-laravel
=========================

Laravel package to create navigation menus, based on KnpLabs/KnpMenu.

1.0.1(10y ago)43.4k2MITPHP

Since Mar 3Pushed 9y ago1 watchersCompare

[ Source](https://github.com/dowilcox/KnpMenu-Laravel)[ Packagist](https://packagist.org/packages/dowilcox/knp-menu-laravel)[ RSS](/packages/dowilcox-knp-menu-laravel/feed)WikiDiscussions master Synced 1mo ago

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

KnpMenu-Laravel
===============

[](#knpmenu-laravel)

Laravel 5 package to create navigation menus, based on [KnpLabs/KnpMenu](https://github.com/KnpLabs/KnpMenu).

### Installation

[](#installation)

Add to your composer.json file

```
"dowilcox/knp-menu-laravel": "1.0.*"
```

### Register the package

[](#register-the-package)

In config/app.php add the service provider and alias.

```
Dowilcox\KnpMenu\MenuServiceProvider::class,
```

```
'Menu' => Dowilcox\KnpMenu\Facades\Menu::class,
```

#### Publish config

[](#publish-config)

```
php artisan vendor:publish
```

### Example

[](#example)

```
$menu = Menu::create('main-menu', ['childrenAttributes' => ['class' => 'nav']]);

$menu->addChild('Home', ['uri' => url('/')]);
$menu->addChild('Users', ['uri' => route('admin.users.index')]);
$menu->addChild('Roles', ['uri' => route('admin.roles.index')]);
$menu->addChild('Menu', ['uri' => url('menu')]);

echo Menu::render($menu);
```

Will output:

```

    Home

    Users

    Roles

    Menu

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

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

Total

3

Last Release

3991d ago

Major Versions

0.0.1 → 1.0.02015-03-13

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1311943?v=4)[Donald](/maintainers/dowilcox)[@dowilcox](https://github.com/dowilcox)

---

Top Contributors

[![dowilcox](https://avatars.githubusercontent.com/u/1311943?v=4)](https://github.com/dowilcox "dowilcox (16 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)[mrmarchone/laravel-auto-crud

Laravel Auto CRUD helps you streamline development and save time.

28711.8k2](/packages/mrmarchone-laravel-auto-crud)

PHPackages © 2026

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