PHPackages                             xj/yii2-ratchet-widget - 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. xj/yii2-ratchet-widget

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

xj/yii2-ratchet-widget
======================

yii2-ratchet-widget

1.0.0(10y ago)2551BSD-3-ClausePHP

Since Aug 28Pushed 8y ago2 watchersCompare

[ Source](https://github.com/xjflyttp/yii2-ratchet-widget)[ Packagist](https://packagist.org/packages/xj/yii2-ratchet-widget)[ RSS](/packages/xj-yii2-ratchet-widget/feed)WikiDiscussions master Synced 1mo ago

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

yii2-ratchet-widget
===================

[](#yii2-ratchet-widget)

```
https://github.com/twbs/ratchet

```

composer.json
-------------

[](#composerjson)

```
"require": {
    "xj/yii2-ratchet-widget": "~1.0.0"
}
```

RegisterAssets
--------------

[](#registerassets)

### Base

[](#base)

```
RatchetAsset::register($this);
```

### AndroidTheme

[](#androidtheme)

```
RatchetAndroidAsset::register($this);
```

### IosTheme

[](#iostheme)

```
RatchetIosAsset::register($this);
```

Widget TabBar
-------------

[](#widget-tabbar)

### Icon

[](#icon)

```
echo TabBar::widget([
    'items' => [
        ['label' => '首页', 'url' => ['shop/index'], 'icon' => 'icon icon-home'],
        ['label' => '最新', 'url' => ['shop/hot'], 'icon' => 'icon icon-search'],
        ['label' => '热门', 'url' => ['shop/hot'], 'icon' => 'icon icon-star-filled'],
        ['label' => '没想好', 'url' => ['shop/hot'], 'icon' => 'icon icon-gear'],
        ['label' => '订单', 'url' => ['profile/order'], 'icon' => 'icon icon-person'],
    ]
]);
```

### Label Only

[](#label-only)

```
echo TabBar::widget([
    'items' => [
        ['label' => '首页', 'url' => ['shop/index']],
        ['label' => '最新', 'url' => ['shop/hot']],
        ['label' => '热门', 'url' => ['shop/hot']],
        ['label' => '没想好', 'url' => ['shop/hot']],
        ['label' => '订单', 'url' => ['profile/order']],
    ]
]);
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

3911d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9f04ccc1ccda3af80975323425ff7d5f7d142603f1ad05df6558ffa63256f8d?d=identicon)[xjflyttp](/maintainers/xjflyttp)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/xj-yii2-ratchet-widget/health.svg)

```
[![Health](https://phpackages.com/badges/xj-yii2-ratchet-widget/health.svg)](https://phpackages.com/packages/xj-yii2-ratchet-widget)
```

PHPackages © 2026

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