PHPackages                             dmstr/yii2-mermaid-asset - 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. dmstr/yii2-mermaid-asset

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

dmstr/yii2-mermaid-asset
========================

Mermaid asset bundle for Yii 2.0 Framework

2.0.0(5mo ago)152.4k—6.7%BSD-3-ClausePHP

Since Jul 10Pushed 5mo ago5 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

yii2-mermaid-asset
==================

[](#yii2-mermaid-asset)

Mermaid asset bundle for Yii 2.0 Framework.

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

[](#installation)

```
composer require dmstr/yii2-mermaid-asset
```

### NPM Asset Installation

[](#npm-asset-installation)

This package requires the `mermaid` npm package. The npm asset must be installed manually or via [foxy](https://github.com/fxpio/foxy).

**Manual installation:**

```
npm install mermaid@^11.0.0
```

**Via foxy:** The `package.json` in this package defines the required npm dependency and will be automatically installed when using foxy.

Configuration
-------------

[](#configuration)

The asset bundle expects mermaid to be available at `@npm/mermaid/dist/`. Make sure the `@npm` alias points to your `node_modules` directory:

```
Yii::setAlias('@npm', '@app/node_modules');
```

Usage
-----

[](#usage)

Register the asset bundle in your view:

```
\dmstr\web\MermaidAsset::register($this);
```

Then initialize mermaid in your JavaScript:

```
mermaid.initialize({startOnLoad: true});
```

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance73

Regular maintenance activity

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~1027 days

Total

4

Last Release

153d ago

Major Versions

0.0.2 → 1.0.02023-02-27

1.0.0 → 2.0.02025-12-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b4ab2b6685ec71887908ec8cff261a16cd5bb24c69bb8ab52840e220f175f9d?d=identicon)[schmunk](/maintainers/schmunk)

---

Top Contributors

[![schmunk42](https://avatars.githubusercontent.com/u/649031?v=4)](https://github.com/schmunk42 "schmunk42 (4 commits)")[![H-Algabri](https://avatars.githubusercontent.com/u/100204087?v=4)](https://github.com/H-Algabri "H-Algabri (2 commits)")

### Embed Badge

![Health badge](/badges/dmstr-yii2-mermaid-asset/health.svg)

```
[![Health](https://phpackages.com/badges/dmstr-yii2-mermaid-asset/health.svg)](https://phpackages.com/packages/dmstr-yii2-mermaid-asset)
```

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)

PHPackages © 2026

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