PHPackages                             mcordingley/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mcordingley/breadcrumbs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mcordingley/breadcrumbs
=======================

Laravel Helper Package for DRY Breadcrumbs

v1.0.0(7y ago)23MITPHPPHP ^7.2.0

Since May 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mcordingley/Breadcrumbs)[ Packagist](https://packagist.org/packages/mcordingley/breadcrumbs)[ RSS](/packages/mcordingley-breadcrumbs/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Breadcrumbs
===========

[](#breadcrumbs)

[![Build Status](https://camo.githubusercontent.com/41f681d8eb730f015cb87d17075e7f25d11c7fa8469748639a813fb19942990a/68747470733a2f2f6170692e7472617669732d63692e6f72672f7265706f7369746f726965732f6d636f7264696e676c65792f42726561646372756d62732e737667)](https://travis-ci.org/mcordingley/Breadcrumbs)[![Code Climate](https://camo.githubusercontent.com/f8de760ced4b8b6ae544a88beeebefbb81af0e523782719a393f37a4d8ba6d95/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d636f7264696e676c65792f42726561646372756d62732f6261646765732f6770612e737667)](https://codeclimate.com/github/mcordingley/Breadcrumbs)[![Code Climate](https://camo.githubusercontent.com/72f0100829aea439b8882246879c403a33fe104a2dbe8ea7e59f464f8e02d2e0/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d636f7264696e676c65792f42726561646372756d62732f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/mcordingley/Breadcrumbs)

Installation and Configuration
------------------------------

[](#installation-and-configuration)

Breadcrumbs is a simple plugin for Laravel to DRY up your breadcrumb routes and names. Start by installing it through Composer.

```
composer require mcordingley/breadcrumbs

```

The package automatically registers its service provider and facade, so the only remaining step is to publish the configuration and sample breadcrumb definition file.

```
php artisan vendor:publish

```

This will create `config/breadcrumbs.php` and `resources/breadcrumbs.json`. If you are using the default settings, there is no need to alter the configuration file or create new entries in your .env file.

The JSON file contains your individual breadcrumb entries, with the routes as keys. Each entry must have a `title`attribute and if the page belongs under another page then it should also have a `parent` attribute with the route of the parent page. The library uses this to recursively find previous breadcrumbs from the current page.

If an entry in the JSON file contains the pattern `{foo}`, the text is replaced by a property `foo` that you pass into the breadcrumb when making it. This pattern also supports dotted notation to pull nested properties.

By default, the breadcrumbs are formatted for use with Bootstrap. If you require a different format, set `BREADCRUMBS_VIEW` in your .env file with the name of whatever view you wish to use instead.

Usage
-----

[](#usage)

Within your views, simply call `make` on the `Breadcrumb` facade with your crumb path and optionally any parameters required to format the path and title. As the output is a string and will contain HTML, you will want to use the unescaped `{!! !!}` tags to output your crumbs. All values injected into the output should already be escaped by the template view.

`{!! Breadcrumb::make('/foo/{foo.id}/edit', ['foo' => ['id' => 4, 'name' => 'Four']) !!}`

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

2564d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/292870c77b057996c6d7ebb96381529d5aba3829e8a9a220328a408039e80d70?d=identicon)[mcordingley](/maintainers/mcordingley)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mcordingley-breadcrumbs/health.svg)

```
[![Health](https://phpackages.com/badges/mcordingley-breadcrumbs/health.svg)](https://phpackages.com/packages/mcordingley-breadcrumbs)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[livewire/flux

The official UI component library for Livewire.

9385.0M86](/packages/livewire-flux)[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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