PHPackages                             matthew-p/yii2-breadcrumbs-microdata - 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. matthew-p/yii2-breadcrumbs-microdata

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

matthew-p/yii2-breadcrumbs-microdata
====================================

Add microdata for breadcrumbs.

1.1(2y ago)422.8k↓50%2BSD-3-ClausePHP

Since Mar 19Pushed 2y agoCompare

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

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

Microdata for breadcrumbs
=========================

[](#microdata-for-breadcrumbs)

Add microdata for breadcrumbs.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist matthew-p/yii2-breadcrumbs-microdata "*"

```

or add

```
"matthew-p/yii2-breadcrumbs-microdata": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

Find in you project:

```
Breadcrumbs::widget([ ... ])
```

and change:

```
use mp\bmicrodata\BreadcrumbsMicrodata; // in top

BreadcrumbsMicrodata::widget([
    'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], // For PHP7 'links' => $this->params['breadcrumbs'] ?? []
]);
```

Alternate version:

```
Breadcrumbs::widget([
    'homeLink' => BreadcrumbsUtility::getHome('Home', Yii::$app->getHomeUrl()), // Link home page with microdata
    'links' => isset($this->params['breadcrumbs']) ? BreadcrumbsUtility::UseMicroData($this->params['breadcrumbs']) : [], // Get other links with microdata
    'options' => [ // Set microdata for container BreadcrumbList
        'class' => 'breadcrumb',
        'itemscope itemtype' => 'http://schema.org/BreadcrumbList'
    ],
]);
```

For view pages:

```
// after set $this->title
$this->params['breadcrumbs'][] = [
    'label' => 'Articles',
    'url' => Url::toRoute('press-center/articles'),
];
$this->params['breadcrumbs'][] = [
    'label' => $this->title,
    // if there is no url element, then this is the current page.
];
```

HTML result:

```

            Home page

            Articles

        10 Must-Read Books for Programmers

```

That's all. Check it.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~2601 days

Total

2

Last Release

740d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/624ecdaa0fb10377abf846c22f1292f5dfc6b1a9277b3e239e323733565ae241?d=identicon)[hellboymxb@gmail.com](/maintainers/hellboymxb@gmail.com)

---

Top Contributors

[![MatthewPattell](https://avatars.githubusercontent.com/u/10459911?v=4)](https://github.com/MatthewPattell "MatthewPattell (7 commits)")[![khalmurad](https://avatars.githubusercontent.com/u/46134234?v=4)](https://github.com/khalmurad "khalmurad (1 commits)")

---

Tags

yii2extensionbreadcrumbsmicrodata

### Embed Badge

![Health badge](/badges/matthew-p-yii2-breadcrumbs-microdata/health.svg)

```
[![Health](https://phpackages.com/badges/matthew-p-yii2-breadcrumbs-microdata/health.svg)](https://phpackages.com/packages/matthew-p-yii2-breadcrumbs-microdata)
```

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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