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(10mo ago)0911MITPHP

Since Jul 13Pushed 10mo 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 1mo ago

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

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 64% of packages

Maintenance56

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community8

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

327d 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

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[symfony/rate-limiter

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

26847.2M146](/packages/symfony-rate-limiter)[pentatrion/vite-bundle

Vite integration for your Symfony app

2725.3M13](/packages/pentatrion-vite-bundle)[symfony/ldap

Provides a LDAP client for PHP on top of PHP's ldap extension

1407.5M45](/packages/symfony-ldap)[php-soap/ext-soap-engine

An ext-soap engine implementation

443.2M7](/packages/php-soap-ext-soap-engine)

PHPackages © 2026

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