PHPackages                             benoitmariaux/bcm-breadcrumbbundle - 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. benoitmariaux/bcm-breadcrumbbundle

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

benoitmariaux/bcm-breadcrumbbundle
==================================

Provides tools to create breadcrumb

1701[2 issues](https://github.com/benoitMariaux/BCMBreadcrumbBundle/issues)PHP

Since Mar 20Pushed 12y ago1 watchersCompare

[ Source](https://github.com/benoitMariaux/BCMBreadcrumbBundle)[ Packagist](https://packagist.org/packages/benoitmariaux/bcm-breadcrumbbundle)[ RSS](/packages/benoitmariaux-bcm-breadcrumbbundle/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

BCMBreadcrumbBundle
===================

[](#bcmbreadcrumbbundle)

BCMBreadcrumbBundle allows you to generate breadcrumbs easily for your Symfony project.

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

[](#installation)

With [composer](http://packagist.org), add:

```
{
    require: {
        "benoitmariaux/bcm-breadcrumbbundle": "dev-master"
    }
}
```

Then enable it in your kernel:

```
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        ...
        new BCM\BreadcrumbBundle\BCMBreadcrumbBundle(),
        ...
```

Usage
-----

[](#usage)

### First step : the routes

[](#first-step--the-routes)

You have to configure two attributes (`label` and `parent`) to `defaults` in routes you want to add to your breadcrumb :

```
homepage:
    pattern: /
    defaults:
        _controller: AcmeDemoBundle:Default:home
        label: homepage # no parent for homepage

articles:
    pattern: /articles
    defaults:
        _controller: AcmeDemoBundle:Article:list
        label: ARTICLES
        parent: homepage

article:
    pattern: /articles/show/{article_id}
    defaults:
        _controller: AcmeDemoBundle:Article:article
        label: '{article_title}'
        parent: articles
```

### Second step : the controller

[](#second-step--the-controller)

Inject all parameters you need for current breadcrumb routes and labels

```
$breadcrumb = $this->get('bcm_breadcrumb.manager')->render(array(
    'article_title' => $article->getTitle(), // useful for article route label
    'article_id' => $article->getId() // useful for article route pattern
));

return $this->render('AcmeDemoBundle:Default:article.html.twig', array(
    'article' => $article,
    'breadcrumb' => $breadcrumb
));
```

### Last step : the view

[](#last-step--the-view)

```
{{ breadcrumb|raw }}
```

Your own view
-------------

[](#your-own-view)

The default view is: `vendor/benoitmariaux/bcm-breadcrumbbundle/BCM/BreadcrumbBundle/Resources/views/bcm-breadcrumb.html.twig`

You can overwrite it by creating your own here: `app/Resources/BCMBreadcrumbBundle/views/bcm-breadcrumb.html.twig`

Label translation
-----------------

[](#label-translation)

You can define translations for your labels with the default domain `breadcrumb`:

- breadcrumb.fr.xliff
- breadcrumb.de.xliff

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![benoitMariaux](https://avatars.githubusercontent.com/u/716856?v=4)](https://github.com/benoitMariaux "benoitMariaux (39 commits)")

### Embed Badge

![Health badge](/badges/benoitmariaux-bcm-breadcrumbbundle/health.svg)

```
[![Health](https://phpackages.com/badges/benoitmariaux-bcm-breadcrumbbundle/health.svg)](https://phpackages.com/packages/benoitmariaux-bcm-breadcrumbbundle)
```

###  Alternatives

[htmlburger/carbon-fields

WordPress developer-friendly custom fields for post types, taxonomy terms, users, comments, widgets, options and more.

1.5k665.2k57](/packages/htmlburger-carbon-fields)[tightenco/tlint

Tighten linter for Laravel conventions

5271.2M34](/packages/tightenco-tlint)[dflydev/placeholder-resolver

Given a data source representing key =&gt; value pairs, resolve placeholders like ${foo.bar} to the value associated with the 'foo.bar' key in the data source.

14414.6M3](/packages/dflydev-placeholder-resolver)[pear/pear

This is the definitive source of PEAR's core files.

1161.7M20](/packages/pear-pear)[pragmarx/ia-collection

Laravel Illuminate Agnostic Collection

473.4M2](/packages/pragmarx-ia-collection)[binarycabin/laravel-uuid

A wrapper for webpatser/laravel-uuid with additional integration

86589.4k](/packages/binarycabin-laravel-uuid)

PHPackages © 2026

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