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(11y 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 today

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 69% 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

4042d 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M375](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M137](/packages/illuminate-cookie)

PHPackages © 2026

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