PHPackages                             cnerta/breadcrumb-bundle - 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. cnerta/breadcrumb-bundle

AbandonedArchivedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

cnerta/breadcrumb-bundle
========================

The CnertaBreadcrumbBundle, for Symfony2, provide an easy way to create a breadcrumb with KnpMenuBundle

2.1.1(10y ago)19173.9k↓33.3%3MITPHP

Since Nov 13Pushed 6y ago1 watchersCompare

[ Source](https://github.com/AgrosupDijon-Eduter/BreadcrumbBundle)[ Packagist](https://packagist.org/packages/cnerta/breadcrumb-bundle)[ RSS](/packages/cnerta-breadcrumb-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (8)Used By (0)

/!\\ Repository not maintained and outdated /!\\
================================================

[](#-repository-not-maintained-and-outdated-)

CnertaBreadcrumbBundle
======================

[](#cnertabreadcrumbbundle)

The CnertaBreadcrumbBundle provide an easy way to create a breadcrumb with [KnpMenuBundle](https://github.com/KnpLabs/KnpMenuBundle) for Symfony2.

If you want to take a look, this Symfony2 app is my Sandbox, [DemoMenu](https://github.com/waldo2188/DemoMenu).

[![SensioLabsInsight](https://camo.githubusercontent.com/f484900f9985c6d63de164091e7da6b1217ad73b6ce2f906fd96fa7b787f0d95/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f37343033306131652d366239362d346562302d623334652d6361643863663662363430632f6269672e706e67)](https://insight.sensiolabs.com/projects/74030a1e-6b96-4eb0-b34e-cad8cf6b640c)

[![Build Status](https://camo.githubusercontent.com/eded20839b3b4497218ff43b71ea6eb1c632829d9a920673f17da168ead1bb0b/68747470733a2f2f7472617669732d63692e6f72672f4167726f73757044696a6f6e2d4564757465722f42726561646372756d6242756e646c652e706e67)](https://travis-ci.org/AgrosupDijon-Eduter/BreadcrumbBundle)[![Latest Stable Version](https://camo.githubusercontent.com/5ff3f23e608d67825b6e9c7f32bb3e2a928916e5fe9884f5bcd78665396ef7c7/68747470733a2f2f706f7365722e707567782e6f72672f636e657274612f62726561646372756d622d62756e646c652f762f737461626c652e706e67)](https://packagist.org/packages/cnerta/breadcrumb-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/0f00a5c6c6c67f7e5eb8daa449b1e556086a18850de81d49a15c4cd5d263548f/68747470733a2f2f706f7365722e707567782e6f72672f636e657274612f62726561646372756d622d62756e646c652f762f756e737461626c652e706e67)](https://packagist.org/packages/cnerta/breadcrumb-bundle)

Install the Bundle
------------------

[](#install-the-bundle)

1. Add the sources in your composer.json

```
     "require": {
        // ...
        "cnerta/breadcrumb-bundle": "2.1.*"
    }
```

2. Then add it to your AppKernel class::

```
    // in AppKernel::registerBundles()
    $bundles = array(
        // ...
        new Cnerta\BreadcrumbBundle\CnertaBreadcrumbBundle(),
        // ...
    );
```

Default configuration
---------------------

[](#default-configuration)

You don't have to configure anything. This part is only usefull if you want to setup a default breadcrumb template.

config.yml

```
    cnerta_breadcrumb:
        twig:
            template: CnertaBreadcrumbBundle::cnerta_breadcrumb.html.twig
```

Rendering Breadcrumb
--------------------

[](#rendering-breadcrumb)

First create your menu with the [KnpMenuBundle](https://github.com/KnpLabs/KnpMenuBundle/blob/master/Resources/doc/index.md#first-menu).

Next, in your twig template call :

```
    {{ cnerta_breadcrumb_render('MyWonderfullBundle:Builder:Menu') }}
```

Or if you just want to get the breadcrumb array and make your stuff :

```
    {% set currentItem = cnerta_breadcrumb_get('MyWonderfullBundle:Builder:Menu') %}
    {# some crazy stuff #}
    {% for item in currentItem %}
        {% if loop.index != 1 %}
            {% if loop.index > 1 %} &gt; {% endif %}
            {% if not loop.last %}{{ item.label }}
            {% else %}{{ item.label }}{% endif %}
        {% endif %}
    {% endfor %}
```

If you want to use your own template for rendering :

```
    {{ cnerta_breadcrumb_render('MyWonderfullBundle:Builder:Menu', {'template': 'MyWonderfullBundle:Breadcrumb:myBreadcrumb.html.twig'}) }}
```

Unit test the Bundle
--------------------

[](#unit-test-the-bundle)

Before running phpunit you must load dependencies. This will only load the required vendors needed for run test.

```
     composer install --dev
```

After that you can run phpunit.

```
      ./vendor/bin/phpunit -c phpunit.xml.dist
```

Changelog
---------

[](#changelog)

### Version 2.1.0 (2015/10/19)

[](#version-210-20151019)

- [\#4](https://github.com/AgrosupDijon-Eduter/BreadcrumbBundle/issues/4) Remove an unnecessary function who remove a node labeled "root"

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 97.5% 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 ~118 days

Recently: every ~105 days

Total

7

Last Release

3855d ago

Major Versions

1.0.0 → 2.0.02014-05-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/598557aca5160bd06926b1a7a7e31097fec14d2bb3937d5597cd9f4efb64ff44?d=identicon)[waldo2188](/maintainers/waldo2188)

---

Top Contributors

[![waldo2188](https://avatars.githubusercontent.com/u/841872?v=4)](https://github.com/waldo2188 "waldo2188 (39 commits)")[![wtfred](https://avatars.githubusercontent.com/u/3072924?v=4)](https://github.com/wtfred "wtfred (1 commits)")

---

Tags

Symfony2breadcrumbsknpmenu

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cnerta-breadcrumb-bundle/health.svg)

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

###  Alternatives

[stfalcon/tinymce-bundle

This Bundle integrates TinyMCE WYSIWYG editor into a Symfony2 project.

2692.9M24](/packages/stfalcon-tinymce-bundle)[maba/webpack-bundle

Bundle to Integrate Webpack to Symfony

123268.2k4](/packages/maba-webpack-bundle)[dmishh/settings-bundle

Database centric Symfony configuration management. Global and per-user settings supported.

115254.9k1](/packages/dmishh-settings-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[slope-it/breadcrumb-bundle

A bundle for generating dynamic breadcrumbs in Symfony applications

1865.5k](/packages/slope-it-breadcrumb-bundle)[mremi/contact-bundle

Implementation of a contact form for Symfony2

2712.4k2](/packages/mremi-contact-bundle)

PHPackages © 2026

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