PHPackages                             evondu/yii2-metronic - 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. [Framework](/categories/framework)
4. /
5. evondu/yii2-metronic

ActiveLibrary[Framework](/categories/framework)

evondu/yii2-metronic
====================

yii2-metronic components

0.1.0(8y ago)1650MITPHP

Since Jan 27Pushed 7y agoCompare

[ Source](https://github.com/EvonDu/yii2-metronic)[ Packagist](https://packagist.org/packages/evondu/yii2-metronic)[ RSS](/packages/evondu-yii2-metronic/feed)WikiDiscussions master Synced 2mo ago

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

Yii2-Metronic
=============

[](#yii2-metronic)

这是一个基于[Metronic v4.5.2](http://www.keenthemes.com/)的Yii2组件/小部件库。使用时需要先加载好Metronic的js和css资源。

安装
--

[](#安装)

```
composer install evondu/yii2-metronic

```

使用方法
----

[](#使用方法)

#### 1、GrdiView

[](#1grdiview)

使用方法与原本YII2中的一样，其主要是修改了样式和布局，使它符合Metronic风格。

```

```

#### 2、ActiveForm

[](#2activeform)

主要在YII2基础上，增加了表单布局类型(Horizontal、Vertical、Inline)和提供更多ActiveField类型。

```

```

##### 2.1、DatePicker

[](#21datepicker)

DatePicker日期输入组件：

```

```

##### 2.2、Select2

[](#22select2)

Select2下拉表单组件：

```

```

##### 2.3、TagsInput

[](#23tagsinput)

TagsInput标签输入组件：

```

```

##### 2.4、Switch

[](#24switch)

Switch滑动开关组件：

```

//Switch

```

##### 2.5、checkboxList

[](#25checkboxlist)

主要调整了相关样式成符合Metronic风格：

```

```

##### 2.5、other

[](#25other)

用于支持其他自定义的widget作为表单组件，需要设置对应的Widget类名和其配置（配置中已隐含了models和attribute），使用例子

```

```

##### 2.6、checkboxTree

[](#26checkboxtree)

树型的CheckboxList选择：

```

```

##### 2.7、editor

[](#27editor)

Summernote富文本编辑器：

```

```

#### 3、Portlet（窗口）

[](#3portlet窗口)

窗口部件，使用前需要先导入`evondu\metronic\widgets\Portlet`，使用例子：

```

echo 'Body portlet';

```

#### 4、Button（按钮）

[](#4button按钮)

按钮部件，使用前需要先导入`evondu\metronic\widgets\Button`，使用例子：

```

```

#### 5、Badge（徽章）

[](#5badge徽章)

徽章部件，使用前需要先导入`evondu\metronic\widgets\Badge`，使用例子：

```

```

#### 6、ProgressBar（进度条）

[](#6progressbar进度条)

进度部件，使用前需要先导入`evondu\metronic\widgets\ProgressBar`，使用例子：

```

```

#### 7、Setp（步骤）

[](#7setp步骤)

步骤部件，使用前需要先导入`evondu\metronic\widgets\Step`，使用例子：

```

```

#### 8、TimeLine（时间线）

[](#8timeline时间线)

时间线部件，使用前需要先导入`evondu\metronic\widgets\TimeLine`，使用例子：

```

```

#### 10、SummernoteEditor（富文本）

[](#10summernoteeditor富文本)

富文本，使用前需要导入`evondu\metronic\widgets\SummernoteEditor`，使用例子：

```

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

3027d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/evondu-yii2-metronic/health.svg)

```
[![Health](https://phpackages.com/badges/evondu-yii2-metronic/health.svg)](https://phpackages.com/packages/evondu-yii2-metronic)
```

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)

PHPackages © 2026

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