PHPackages                             lotus/navmenu - 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. lotus/navmenu

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

lotus/navmenu
=============

A lightweight implementation of navigation menu builder for PHP

v1.1.2(8y ago)044MITPHPPHP &gt;=5.4.0

Since Apr 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/crajbanshi/lotus-navmenu)[ Packagist](https://packagist.org/packages/lotus/navmenu)[ RSS](/packages/lotus-navmenu/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

PHP Menu builder for Codeigniter and Laravel
============================================

[](#php-menu-builder-for-codeigniter-and-laravel)

This is a package for simply creating Navigation Menu, breadcumb and sitemap in PHP, Codeigniter and Laravel 5.

Introduction
------------

[](#introduction)

Simply use the `Menu` facade in the place of the `Nav Menu` facade when you want to generate a Navigation Menu.

Add via composer

```
composer require lotus/navmenu
```

Menu is a php class which auto build navigation menu.

First Input the menu array and navbar css class.

```
$type = 'user';
Menu::setMenuArray ( $navbarArray,[ 'class' => 'nav nav-bar' ], $type );
```

To place menu at your page, use render method at your header page.

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

Get Breadcumb

```
echo Menu::renderBreadcumb ();
```

Get Active menu array

```
$lavel = 0;
echo Menu::getActiveMenu($lavel);
```

This one can generate sitemap also. site map using this class library.

Generate Sitemap in Sitemap page use,

Menu::renderSitemap( $type, 'Customer' ) ;

$menutype is either **public** or **user**.

Example menu input array

```
$navbarArray = [ 'home' => [ 'label' => 'Home', 'url' =>  ( '/Home' ), 'icon'=>'fa fa-home' ],
	    'View' => [ 'label' => 'View', 'url' => '',
			 'child' => [
				 'user_related' => [ 'label' => 'User Related', 'url' => '#'  ]
			]
		 ],
		'AboutUs' => [ 'label' => 'About Us', 'url' => '#' ,
			'child' => [ 'aboutus' => [ 'label' => 'About Us', 'url' =>  ( '/About-us' ) ],
				     'contactus' => [ 'label' => 'Contact Us', 'icon' => 'fa fa-envelope', 'url' =>  ( '/Contactus' ) ]
				 ]
			],
		'usermenu' => [ 'label' => 'Login', 'icon' => 'fa fa-sign-in', 'url' => "#", 'atribute' => [ 'onClick' => "log_in();" ] ]
	];
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Total

4

Last Release

3269d ago

### Community

Maintainers

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

---

Top Contributors

[![crajbanshi1](https://avatars.githubusercontent.com/u/169356633?v=4)](https://github.com/crajbanshi1 "crajbanshi1 (9 commits)")

---

Tags

navphp menu

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lotus-navmenu/health.svg)

```
[![Health](https://phpackages.com/badges/lotus-navmenu/health.svg)](https://phpackages.com/packages/lotus-navmenu)
```

###  Alternatives

[nwidart/laravel-menus

Laravel Menu management

168180.3k10](/packages/nwidart-laravel-menus)[pingpong/menus

Laravel Menus

70194.4k13](/packages/pingpong-menus)[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)
