dowilcox/knp-menu-laravel
Larablocks Analysis
dowilcox/knp-menu-laravel works with Laravel 5 (latest release 1.0.1, Jun 9, 2015), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Jun 9, 2015)
- 2 downloads a month (needs 10,000)
- 4 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Jun 9, 2015.
- No releases in the last 12 months.
- First released: Mar 3, 2015.
- Monthly downloads: 2.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require dowilcox/knp-menu-laravel |
|
| Latest Version: | 1.0.1 |
| Laravel: | 5 |
| License: | MIT |
| Last Updated: | Nov 11, 2016 |
| Links: | GitHub · Packagist |
KnpMenu-Laravel
Laravel 5 package to create navigation menus, based on KnpLabs/KnpMenu.
Installation
Add to your composer.json file
"dowilcox/knp-menu-laravel": "1.0.*"
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
php artisan vendor:publish
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:
<ul class="nav">
<li class="first">
<a href="http://localhost:8000">Home</a>
</li>
<li>
<a href="http://localhost:8000/admin/users">Users</a>
</li>
<li>
<a href="http://localhost:8000/admin/roles">Roles</a>
</li>
<li class="current active last">
<a href="http://localhost:8000/menu">Menu</a>
</li>
</ul>
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | Laravel | License |
|---|---|---|---|
| 1.0.1 | ~5.0 || | MIT | |
| 1.0.0 | 5.0.* | MIT | |
| 0.0.1 | 5.0.* | MIT |