PHPackages                             kkiernan/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. kkiernan/breadcrumbs

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

kkiernan/breadcrumbs
====================

Easy breadcrumb generation

0.1.1(9y ago)115MITPHP

Since Feb 9Pushed 9y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Easy Breadcrumb Generation
==========================

[](#easy-breadcrumb-generation)

- [Install](#install)
- [Usage](#usage)
- [Dynamic Crumbs](#dynamic-crumbs)

Install
-------

[](#install)

First, install the package via composer:

```
composer require kkiernan/breadcrumbs

```

If using Laravel, add the service provider and alias to `config/app.php`.

```
'providers' => [
    Kiernan\Breadcrumbs\ServiceProvider::class,
],

'aliases' => [
    'Breadcrumbs' => \Kiernan\Breadcrumbs\Facade::class,
]
```

Usage
-----

[](#usage)

Add breadcrumbs as needed before rendering your view:

```
Breadcrumbs::add('Posts', action('PostsController@index'));
Breadcrumbs::add('New Post');
```

Add many breadcrumbs at once if you prefer:

```
Breadcrumbs::addMany([
    ['Posts', action('PostsController@index')],
    ['New Post']
]);
```

A Bootstrap partial is included to display your breadcrumbs. If using Laravel Blade, you can include the partial in your template:

```
@include('kkiernan::breadcrumbs');

```

If you'd like to edit the partial, publish it to `resources/views/vendor/kkiernan`:

```
php artisan vendor:publish --tag=kkiernan

```

Dynamic Crumbs
--------------

[](#dynamic-crumbs)

Breadcrumbs can be added dynamically, which is helpful when multiple pages link to a particular page. For example, imagine that both a dashboard and a list of posts link to a post detail view. Consider the following Laravel-centric example in which the first breadcrumb will render as either "Dashboard" or "Posts" depending on the referring page.

```
// DashboardController@index...
Breadcrumbs::put('posts', 'Dashboard', action('DashboardController@index'));
```

```
// PostsController@index...
Breadcrumbs::put('posts', 'Posts', action('DashboardController@index'));
```

```
// PostsController@show...
Breadcrumbs::addDynamic('posts');
Breadcrumbs::add($post->title);
```

If you need to unset a dynamic crumb and prevent it from rendering, simply call the forget method:

```
Breadcrumbs::forget('posts');
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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.

###  Release Activity

Cadence

Every ~5 days

Total

2

Last Release

3369d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/99d8fa03037957d5ebd061dade4a624bc2b7b324cef2c955f5a8dcb728d97ab1?d=identicon)[kkiernan](/maintainers/kkiernan)

---

Top Contributors

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

---

Tags

breadcrumbslaravel

### Embed Badge

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

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

###  Alternatives

[scheb/tombstone

Dead code detection with tombstones for PHP

282578.2k2](/packages/scheb-tombstone)

PHPackages © 2026

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