PHPackages                             osw3/symfony-breadcrumb - 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. osw3/symfony-breadcrumb

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

osw3/symfony-breadcrumb
=======================

Add breadcrumbs to your app pages.

0.0.16(9mo ago)091MITPHP

Since Jul 13Pushed 9mo agoCompare

[ Source](https://github.com/OSW3/symfony-breadcrumb)[ Packagist](https://packagist.org/packages/osw3/symfony-breadcrumb)[ Docs](https://osw3.net)[ RSS](/packages/osw3-symfony-breadcrumb/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (17)Used By (0)

Symfony Breadcrumb
==================

[](#symfony-breadcrumb)

Add breadcrumbs to your app pages.

How to install
--------------

[](#how-to-install)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
composer require osw3/symfony-breadcrumb
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    OSW3\Breadcrumb\BreadcrumbBundle::class => ['all' => true],
];
```

### Step 3: Expose the Bundle to Twig

[](#step-3-expose-the-bundle-to-twig)

Add the breadcrumb to the Twig component settings `config/packages/twig_component.yaml`

```
twig_component:
    defaults:
        #...
        OSW3\Breadcrumb\Components\: '@Breadcrumb/'
```

How to use
----------

[](#how-to-use)

### Step 1: Edit controllers

[](#step-1-edit-controllers)

Edit each controller that needs breadcrumb and add the "Breadcrumb" attribute.

```
class ProductController extends AbstractController
{
    #[Route('/products', name: 'app_product')]
    #[Breadcrumb([['label' => "Products", 'route' => "app_product"]])]
    public function index(): Response
    {
        // ...
    }
}
```

or add multiple items

```
class BookController extends AbstractController
{
    #[Route('/books', name: 'app_books')]
    #[Breadcrumb([
        ['label' => "Products", 'route' => "app_product"]
        ['label' => "Books", 'route' => "app_books"]
    ])]
    public function index(): Response
    {
        // ...
    }
}
```

### Step 2: The twig component

[](#step-2-the-twig-component)

In your twig files use :

```

```

Or wtih custom ID and/or custom class

```

```

How to configure
----------------

[](#how-to-configure)

The breadcrumb configuration is located at `config/package/breadcrumb.yaml`.

### Configuration sample

[](#configuration-sample)

```
breadcrumb:
    home:
        label: Home
        route: app_homepage
        icon: 'fa fa-home'
        domain: null
    template: default
    separator: null
    items:
        class: null
        absolute: false
    hide_empty: true
```

### Configuration options

[](#configuration-options)

###  Health Score

30

—

LowBetter than 67% of packages

Maintenance58

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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 ~22 days

Recently: every ~80 days

Total

16

Last Release

278d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fb494ca5da6d3783e7ccfa656354d43d111a024b573051f5ca8f922b0d386ca?d=identicon)[osw3](/maintainers/osw3)

---

Top Contributors

[![ArnaudBDL](https://avatars.githubusercontent.com/u/53226044?v=4)](https://github.com/ArnaudBDL "ArnaudBDL (15 commits)")

### Embed Badge

![Health badge](/badges/osw3-symfony-breadcrumb/health.svg)

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

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k229.8M17.9k](/packages/friendsofphp-php-cs-fixer)[symfony/rate-limiter

Provides a Token Bucket implementation to rate limit input and output in your application

26645.1M101](/packages/symfony-rate-limiter)[pentatrion/vite-bundle

Vite integration for your Symfony app

2734.8M10](/packages/pentatrion-vite-bundle)[phpbench/container

Simple, configurable, service container.

1612.5M4](/packages/phpbench-container)[hackzilla/ticket-bundle

This Bundle provides multilingual ticketing functionality for Symfony applications.

6429.3k1](/packages/hackzilla-ticket-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.

3688.5k7](/packages/netgen-layouts-core)

PHPackages © 2026

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