PHPackages                             alshenetsky/easyadmin-breadcrumbs - 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. [Admin Panels](/categories/admin)
4. /
5. alshenetsky/easyadmin-breadcrumbs

ActiveSymfony-bundle[Admin Panels](/categories/admin)

alshenetsky/easyadmin-breadcrumbs
=================================

A bundle that allows you to add breadcrumbs to EasyAdmin

1.2.2(6mo ago)124.9k—0%1MITPHPPHP ^8.0

Since Feb 28Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/alshenetsky/easyadmin-breadcrumbs)[ Packagist](https://packagist.org/packages/alshenetsky/easyadmin-breadcrumbs)[ RSS](/packages/alshenetsky-easyadmin-breadcrumbs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (18)Used By (0)

easyadmin-breadcrumbs
=====================

[](#easyadmin-breadcrumbs)

A bundle that allows you to add breadcrumbs to [EasyAdmin](https://github.com/EasyCorp/EasyAdminBundle)

[![A bundle that allows you to add breadcrumbs to EasyAdmin](/doc/images/promo.png)](/doc/images/promo.png)

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

[](#installation)

This bundle requires EasyAdmin 4.5 or higher, PHP 8.0 or higher and Symfony 5.4 or higher. Run the following command to install it in your application:

```
$ composer require alshenetsky/easyadmin-breadcrumbs

```

Documentation
-------------

[](#documentation)

### Concept

[](#concept)

EasyAdmin, as we know, does not have functionality for placing breadcrumbs on admin pages. Navigation in the admin area is based on the GET request data, packed into a class named AdminContext. Transitions between controller methods are implemented by generating the URL to the desired CRUD and, if necessary, applying filters to it. So it becomes difficult to build a breadcrumb tree, because you need to somehow store the hierarchy of controllers without losing filters and controllers' connections to each other.

This bundle allows you to recreate such a hierarchy. You create a Breadcrumb class, which in turn creates a reference to the parent Breadcrumb, and so on.

### Creating breadcrumb hierarchy

[](#creating-breadcrumb-hierarchy)

Such a class must implement the BreadcrumbInterface. The easiest way to do it is to inherit the AbstractBreadcrumb class, which already implements this interface and contains useful methods, reducing the number of boilerplate:

```
