PHPackages                             scharrier/li3\_menu - 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. scharrier/li3\_menu

ActiveLithium-library[Utility &amp; Helpers](/categories/utility)

scharrier/li3\_menu
===================

Lithium simple menu generator

5801PHP

Since May 22Pushed 11y ago3 watchersCompare

[ Source](https://github.com/scharrier/li3_menu)[ Packagist](https://packagist.org/packages/scharrier/li3_menu)[ RSS](/packages/scharrier-li3-menu/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

li3\_menu : Lithium menu generator
==================================

[](#li3_menu--lithium-menu-generator)

Creating a menu in Lithium should be easy. This little helper does only one thing : it takes a menu, identifies the active link and render a ul/li menu.

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

[](#installation)

Just add in your config/bootstrap/libraries.php :

```
	Libraries::add('li3_menu') ;
```

And in your view :

```
    $this->menu->display(array(
      'Home' => '/',
      'My pictures' => '/pictures'
    ));
```

Advanced usage
--------------

[](#advanced-usage)

You can specify more params into your links by defining them as arrays :

- url : destination (can be an array or a string)
- mask : if you wan't to specify a more specific mask. By default, the mask is the destination url.
- active : if you want to force an active item, set this to (bool) true.
- class : if you want to add a css class to your item

```
    $this->menu->display(array(
      'Home' => ['url' => '/', 'mask' => ['controller' => 'home']] // Will be active for all the Home controller actions
      'My pictures' => ['url' => ['controller' => 'pictures', 'action' => my], 'class' => 'my-pictures']
    ));
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.8% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/30788?v=4)[Sébastien Charrier](/maintainers/scharrier)[@scharrier](https://github.com/scharrier)

---

Top Contributors

[![scharrier](https://avatars.githubusercontent.com/u/30788?v=4)](https://github.com/scharrier "scharrier (15 commits)")[![agborkowski](https://avatars.githubusercontent.com/u/170557?v=4)](https://github.com/agborkowski "agborkowski (1 commits)")

### Embed Badge

![Health badge](/badges/scharrier-li3-menu/health.svg)

```
[![Health](https://phpackages.com/badges/scharrier-li3-menu/health.svg)](https://phpackages.com/packages/scharrier-li3-menu)
```

PHPackages © 2026

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