PHPackages                             xruff/navigation - 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. xruff/navigation

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

xruff/navigation
================

Nette extension - navigation for breadcrumbs

v2.0(6y ago)0683BSD-3-ClausePHP

Since Feb 14Pushed 6y ago3 watchersCompare

[ Source](https://github.com/XRuff/Navigation)[ Packagist](https://packagist.org/packages/xruff/navigation)[ RSS](/packages/xruff-navigation/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (2)Versions (6)Used By (0)

Breadcrumbs navigation
======================

[](#breadcrumbs-navigation)

Original code [Jan Marek](https://github.com/janmarek/Navigation).

Requirements
------------

[](#requirements)

Package requires PHP 7.0 or higher

- [nette/component-model](https://github.com/nette/component-model)
- [nette/application](https://github.com/nette/application)

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

[](#installation)

The best way to install XRuff/Navigation is using [Composer](http://getcomposer.org/):

```
$ composer require xruff/navigation
```

or add package to composer.json file

```
{
    "require": {
        "xruff/navigation": "dev-master"
    }
}
```

Documentation
-------------

[](#documentation)

Register configuration in config.neon.

Config has two optional parameters - `breadcrumbsTemplate` and `menuTemplate`.

```
extensions:
    navigation: XRuff\Components\Navigation\DI\NavigationExtension

# and optional settings for custom templates
navigation:
    breadcrumbsTemplate: %appDir%/components/breadcrumbs.latte
```

Base presenter:

```
use Nette;
use XRuff\Components\Navigation\Navigation;

abstract class BasePresenter extends Nette\Application\UI\Presenter
{
	/** @var Navigation @inject */
	public $navigationFactory;

	protected function createComponentNavigation($name) {
		$nav = $this->navigationFactory->create($this);
		$nav->setupHomepage('Homepage', $this->link('Homepage:'));
		return $nav;
	}
}
```

Another presenter extended from our BasePresenter:

```
use XRuff\Components\Navigation\Navigation;

class SomePresenter extends BasePresenter
{
	/** @var XRuff\Components\Navigation\Navigation $nav */
	private $nav;

	protected function startup()
	{
		parent::startup();
		$this->nav = $this['navigation']->add('Company name', $this->link('Company:'));
	}

	public function renderDefault()
	{
		$this->nav = $this->nav->add('Overview', false);
		$this->nav->setCurrent(true);
	}

	public function renderDepartment()
	{
		$this->nav = $this->nav->add('Department name', false);
		$this->nav->setCurrent(true);
	}

	public function renderOther()
	{

		$sec = $this->nav->add('Section', $this->link('Category:', ['id' => 1]));
		$article = $sec->add('Article', $this->link('Article:', ['id' => 1]));
		$this->nav->setCurrentNode($article);
		// or $article->setCurrent(TRUE);
	}
}
```

template.latte (breadcrumbs template is compatible with [Bootstrap 3](https://getbootstrap.com/docs/3.3/components/#breadcrumbs)):

```
    ...

    {control navigation:breadcrumbs}
    ...
```

---

Repository .

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~198 days

Total

5

Last Release

2264d ago

Major Versions

v1.0.2 → v2.02020-04-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/2eadb96b627cd99367bb565aa4c6058b276146ec587a6ea9f81b1ce1642dca3c?d=identicon)[xruff](/maintainers/xruff)

---

Top Contributors

[![mlazovla](https://avatars.githubusercontent.com/u/2652944?v=4)](https://github.com/mlazovla "mlazovla (1 commits)")[![XRuff](https://avatars.githubusercontent.com/u/10323314?v=4)](https://github.com/XRuff "XRuff (1 commits)")

---

Tags

nettenette-componentnettemenucomponentbreadcrumbs

### Embed Badge

![Health badge](/badges/xruff-navigation/health.svg)

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

###  Alternatives

[contributte/menu-control

Menu control for Nette framework

29112.2k1](/packages/contributte-menu-control)[carrooi/nette-menu

Menu control for Nette framework

2950.5k1](/packages/carrooi-nette-menu)[extpoint/yii2-megamenu

Configurable site map with auto generate page title, breadcrumbs and navigation

3311.4k](/packages/extpoint-yii2-megamenu)[geeklabs/ci4-breadcrumbs

Breadcrumb navigation for CodeIgniter 4

2814.8k](/packages/geeklabs-ci4-breadcrumbs)

PHPackages © 2026

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