PHPackages                             rikiless/breadcrumb-component - 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. rikiless/breadcrumb-component

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

rikiless/breadcrumb-component
=============================

Basic component rendering breadcrumb for websites using Nette Framework

0.9.2(12y ago)069[1 issues](https://github.com/rikiless/BreadcrumbComponent/issues)MITPHPPHP &gt;=5.4

Since May 2Pushed 12y ago1 watchersCompare

[ Source](https://github.com/rikiless/BreadcrumbComponent)[ Packagist](https://packagist.org/packages/rikiless/breadcrumb-component)[ RSS](/packages/rikiless-breadcrumb-component/feed)WikiDiscussions master Synced 1w ago

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

BreadcrumbComponent
===================

[](#breadcrumbcomponent)

Basic component rendering breadcrumb for websites using Nette Framework.

*Included template is compatible with Bootstrap 3.2 \**

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

[](#requirements)

This package requires PHP 5.4.

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

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

[](#installation)

The best way to install this package is using [Composer](https://getcomposer.org):

```
$ composer require "rikiless/breadcrumb-component:@dev"
```

And register the factory in `config.neon`:

```
services:
    - Rikiless\BreadcrumbComponent\IControl
```

Use
---

[](#use)

Inject to presenter:

```
class Presenter ...
{

    /**
     * @var Rikiless\BreadcrumbComponent\IControl
     * @inject
     */
    public $breadcrumbControl;

    public function createComponentBreadcrumb()
    {
        return $this->breadcrumbControl->create();
    }

}
```

Render in template:

```
{control breadcrumb}
```

### Add items to breadcrumb

[](#add-items-to-breadcrumb)

```
class CatalogPresenter ...
{

    public function actionEpisode($id)
    {
        //$episode = ...($id);

		$this['breadcrumb']
			->add('Series', $this->link('Homepage:genres'))
			->add($episode->show->name, $this->link('Homepage:show', $episode->show->url))
			->add('All episodes', $this->link('Homepage:episodes', $episode->show->url))
			->add($episode->show->name);
    }

}
```

### Custom template

[](#custom-template)

You can use your own template by this way:

```
class Presenter ...
{

    public function createComponentBreadcrumb()
    {
        $breadcrumb = $this->breadcrumbControl->create();
        $breadcrumb->setTemplate(__DIR__. '/../templates/_breadcrumb.latte');
        return $breadcrumb;
    }

}
```

### Translations

[](#translations)

Translations are supported.

Examples
--------

[](#examples)

[![Example 1](https://camo.githubusercontent.com/559f8bb5f2e1d5c6a011f18218477aacdc44bc48e0c1acecc7a2a1f385c8f5d2/687474703a2f2f6769746875622e72696b69686f2e6e65742f62726561646372756d622d636f6d706f6e656e742d312e706e67)](https://camo.githubusercontent.com/559f8bb5f2e1d5c6a011f18218477aacdc44bc48e0c1acecc7a2a1f385c8f5d2/687474703a2f2f6769746875622e72696b69686f2e6e65742f62726561646372756d622d636f6d706f6e656e742d312e706e67)

[![Example 2](https://camo.githubusercontent.com/424f5002c30df567e507880d71212ec35318e0df712a27f00e9c358e088c4594/687474703a2f2f6769746875622e72696b69686f2e6e65742f62726561646372756d622d636f6d706f6e656e742d322e706e67)](https://camo.githubusercontent.com/424f5002c30df567e507880d71212ec35318e0df712a27f00e9c358e088c4594/687474703a2f2f6769746875622e72696b69686f2e6e65742f62726561646372756d622d636f6d706f6e656e742d322e706e67)

\* In default template is use of classes `.visible-sm` mixed with `.visible-lg` and it seems to be [broken](https://github.com/twbs/bootstrap/issues/12015) in Bootstrap 3.1.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Every ~1 days

Total

3

Last Release

4397d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/rikiless-breadcrumb-component/health.svg)

```
[![Health](https://phpackages.com/badges/rikiless-breadcrumb-component/health.svg)](https://phpackages.com/packages/rikiless-breadcrumb-component)
```

###  Alternatives

[nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

881.7M6](/packages/nette-code-checker)[contributte/menu-control

Menu control for Nette framework

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

Menu control for Nette framework

2950.0k1](/packages/carrooi-nette-menu)

PHPackages © 2026

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