PHPackages                             jvs/simplenavigation - 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. jvs/simplenavigation

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

jvs/simplenavigation
====================

Simple HTML navigation generator.

1.0.0(12y ago)2471MITPHPPHP &gt;=5.3.0

Since Sep 8Pushed 12y ago1 watchersCompare

[ Source](https://github.com/JV-Software/SimpleNavigation)[ Packagist](https://packagist.org/packages/jvs/simplenavigation)[ RSS](/packages/jvs-simplenavigation/feed)WikiDiscussions master Synced today

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

Simple Navigation for PHP
-------------------------

[](#simple-navigation-for-php)

[![Build Status](https://camo.githubusercontent.com/a459876e0305156c22c0533377e65de54e105e42e5d292c3c9179f037bcab9e3/68747470733a2f2f7472617669732d63692e6f72672f4a562d536f6674776172652f53696d706c654e617669676174696f6e2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/JV-Software/SimpleNavigation)

Super simple class for rendering navigation from an array of items.

### Installation

[](#installation)

#### With Composer

[](#with-composer)

Simply require the library on your `composer.json` file:

```
"require": {
    "jvs/simplenavigation": "dev-master"
}

```

And run `composer install` or `composer update` if you already installed some packages.

#### Without Composer

[](#without-composer)

1. Download the zip file
2. Extract to your project folder
3. Make sure to require the main class `require_once 'lib/JVS/SimpleNavigation.php';`

### Usage

[](#usage)

`SimpleNavigation` provides a simple `make` function that expects an array with the menu items you want to render, it can be a simple array:

```
$simpleNav = new JVS\SimpleNavigation;
$navItems = array('Home', 'About Us', 'Blog');

echo $simpleNav->make($navItems);
```

Which outputs:

```

    Home
    About Us
    Blog

```

A multi-dimensional array with key/value pairs representing the label and url of the item:

```
$simpleNav = new JVS\SimpleNavigation;
$navItems = array(
    'Home'     => 'http://www.example.com/',
    'About Us' => 'http://www.example.com/about.php',
    'Blog'     => 'http://www.example.com/blog.php',
);

echo $simpleNav->make($navItems);
```

Which outputs:

```

    Home
    About Us
    Blog

```

Or a fully nested array of arrays:

```
$simpleNav = new JVS\SimpleNavigation;
$navItems = array(
    'Home'     => 'http://www.example.com/',
    'About Us' => array(
        'Our Company' => 'http://www.example.com/about/company.php',
        'Our Team'    => 'http://www.example.com/about/team.php',
    ),
    'Blog'     => 'http://www.example.com/blog.php',
);

echo $simpleNav->make($navItems);
```

Which outputs:

```

    Home

        About Us

    Blog

```

That's all there is to it for now.

### Contributing

[](#contributing)

Feel free to submit bugs or pull requests, just make sure to include unit tests if relevant.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

4678d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1132bce9c17196d7e3a3e4081f7730f9fc364f85a5b18a0886a7d8aca8398fd4?d=identicon)[jahvi](/maintainers/jahvi)

---

Top Contributors

[![jahvi](https://avatars.githubusercontent.com/u/661330?v=4)](https://github.com/jahvi "jahvi (7 commits)")

---

Tags

htmlmenunavigation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jvs-simplenavigation/health.svg)

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

###  Alternatives

[spatie/menu

Html menu generator

7583.0M10](/packages/spatie-menu)[verbb/navigation

Create navigation menus for your site.

92698.4k18](/packages/verbb-navigation)[kartik-v/yii2-widget-sidenav

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

364.1M8](/packages/kartik-v-yii2-widget-sidenav)[caffeinated/menus

Laravel Menus

132160.3k5](/packages/caffeinated-menus)[akaunting/laravel-menu

Menu and sidebar management package for Laravel

38248.3k](/packages/akaunting-laravel-menu)[belugadigital/kirby-navigation

Kirby 5 field for hierarchical menus with drag &amp; drop level indentation.

8613.8k](/packages/belugadigital-kirby-navigation)

PHPackages © 2026

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