PHPackages                             jumper423/yii2-widget-sidenav - 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. jumper423/yii2-widget-sidenav

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

jumper423/yii2-widget-sidenav
=============================

An enhanced side navigation menu styled for bootstrap (sub repo split from yii2-widgets)

v1.0.0(11y ago)120BSD 3-ClausePHP

Since Nov 9Pushed 10y ago1 watchersCompare

[ Source](https://github.com/jumper423/yii2-widget-sidenav)[ Packagist](https://packagist.org/packages/jumper423/yii2-widget-sidenav)[ Docs](https://github.com/kartik-v/yii2-widget-sidenav)[ RSS](/packages/jumper423-yii2-widget-sidenav/feed)WikiDiscussions master Synced 1mo ago

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

yii2-widget-sidenav
===================

[](#yii2-widget-sidenav)

[![Latest Stable Version](https://camo.githubusercontent.com/58be92d2a5f29e1bf485d637af2a929066a82f99aa4eed6d4a078278f0ce7855/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d736964656e61762f762f737461626c65)](https://packagist.org/packages/kartik-v/yii2-widget-sidenav)[![License](https://camo.githubusercontent.com/13f19a0bdafdc698cffa18ce27e39128adc1d2754bbd3529a4410c73320dc8ae/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d736964656e61762f6c6963656e7365)](https://packagist.org/packages/kartik-v/yii2-widget-sidenav)[![Total Downloads](https://camo.githubusercontent.com/dd86e19f53723fec3fd5c9e31d290ee75c3697e280b9de1da40d42c43ebb9d01/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d736964656e61762f646f776e6c6f616473)](https://packagist.org/packages/kartik-v/yii2-widget-sidenav)[![Monthly Downloads](https://camo.githubusercontent.com/9dfaed853afef2392636ac486a9abcd73a64582adbf89020556d368f49164a0b/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d736964656e61762f642f6d6f6e74686c79)](https://packagist.org/packages/kartik-v/yii2-widget-sidenav)[![Daily Downloads](https://camo.githubusercontent.com/4b58bb312964358542f642ea5776c28741b33bdaaaed1e11a796e277e090b9b3/68747470733a2f2f706f7365722e707567782e6f72672f6b617274696b2d762f796969322d7769646765742d736964656e61762f642f6461696c79)](https://packagist.org/packages/kartik-v/yii2-widget-sidenav)

This widget is a collapsible side navigation menu built to seamlessly work with Bootstrap framework. It is built over Bootstrap [stacked nav](http://getbootstrap.com/components/#nav-pills) component. This widget class extends the [Yii Menu widget](https://github.com/yiisoft/yii2/blob/master/framework/widgets/Menu.php). Upto 3 levels of submenus are by default supported by the CSS styles to balance performance and useability. You can choose to extend it to more or less levels by customizing the [CSS](https://github.com/kartik-v/yii2-widgets/blob/master/assets/css/sidenav.css).

> NOTE: This extension is a sub repo split of [yii2-widgets](https://github.com/kartik-v/yii2-widgets). The split has been done since 08-Nov-2014 to allow developers to install this specific widget in isolation if needed. One can also use the extension the previous way with the whole suite of [yii2-widgets](http://demos.krajee.com/widgets).

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/). Check the [composer.json](https://github.com/kartik-v/yii2-widget-sidenav/blob/master/composer.json) for this extension's requirements and dependencies. Read this [web tip /wiki](http://webtips.krajee.com/setting-composer-minimum-stability-application/) on setting the `minimum-stability` settings for your application's composer.json.

To install, either run

```
$ php composer.phar require kartik-v/yii2-widget-sidenav "*"

```

or add

```
"kartik-v/yii2-widget-sidenav": "*"

```

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

Latest Release
--------------

[](#latest-release)

> NOTE: The latest version of the module is v1.0.0 released on 08-Nov-2014. Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-widget-sidenav/blob/master/CHANGE.md) for details.

Demo
----

[](#demo)

You can refer detailed [documentation and demos](http://demos.krajee.com/widget-details/sidenav) on usage of the extension.

Usage
-----

[](#usage)

```
use kartik\sidenav\SideNav;

echo SideNav::widget([
	'type' => SideNav::TYPE_DEFAULT,
	'heading' => 'Options',
	'items' => [
		[
			'url' => '#',
			'label' => 'Home',
			'icon' => 'home'
		],
		[
			'label' => 'Help',
			'icon' => 'question-sign',
			'items' => [
				['label' => 'About', 'icon'=>'info-sign', 'url'=>'#'],
				['label' => 'Contact', 'icon'=>'phone', 'url'=>'#'],
			],
		],
	],
]);
```

License
-------

[](#license)

**yii2-widget-sidenav** is released under the BSD 3-Clause License. See the bundled `LICENSE.md` for details.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 55.6% 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 ~0 days

Total

2

Last Release

4202d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/439d5d301333a1fa93f698c0ff8b03b2634db04507148d5d9a692fa1e7605722?d=identicon)[jumper423](/maintainers/jumper423)

---

Top Contributors

[![kartik-v](https://avatars.githubusercontent.com/u/3592619?v=4)](https://github.com/kartik-v "kartik-v (5 commits)")[![jumper423](https://avatars.githubusercontent.com/u/12099016?v=4)](https://github.com/jumper423 "jumper423 (4 commits)")

---

Tags

pluginjquerymenuyii2extensionwidgetbootstrapnavigationsidenav

### Embed Badge

![Health badge](/badges/jumper423-yii2-widget-sidenav/health.svg)

```
[![Health](https://phpackages.com/badges/jumper423-yii2-widget-sidenav/health.svg)](https://phpackages.com/packages/jumper423-yii2-widget-sidenav)
```

###  Alternatives

[kartik-v/yii2-widget-sidenav

An enhanced side navigation menu styled for bootstrap (sub repo split from yii2-widgets)

364.0M8](/packages/kartik-v-yii2-widget-sidenav)[kartik-v/yii2-widget-affix

A scrollspy and affixed enhanced navigation to highlight page sections (sub repo split from yii2-widgets)

153.8M3](/packages/kartik-v-yii2-widget-affix)[kartik-v/yii2-widget-rating

A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)

444.1M8](/packages/kartik-v-yii2-widget-rating)[kartik-v/yii2-widget-timepicker

Enhanced Yii2 wrapper for the bootstrap timepicker plugin (sub repo split from yii2-widgets)

404.9M14](/packages/kartik-v-yii2-widget-timepicker)[kartik-v/yii2-widget-switchinput

A Yii2 wrapper widget for the Bootstrap Switch plugin to use checkboxes &amp; radios as toggle switchinputes (sub repo split from yii2-widgets)

384.4M13](/packages/kartik-v-yii2-widget-switchinput)[kartik-v/yii2-widget-datepicker

Enhanced Yii2 wrapper for the bootstrap datepicker plugin (sub repo split from yii2-widgets).

1097.0M60](/packages/kartik-v-yii2-widget-datepicker)

PHPackages © 2026

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