PHPackages                             limefamily/yii2-limetheme - 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. limefamily/yii2-limetheme

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

limefamily/yii2-limetheme
=========================

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

1.1.7(6y ago)277MITPHPPHP &gt;=5.4.0

Since Jan 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/namebjp/yii2-limetheme)[ Packagist](https://packagist.org/packages/limefamily/yii2-limetheme)[ Docs](https://github.com/namebjp/yii2-limetheme)[ RSS](/packages/limefamily-yii2-limetheme/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (24)Used By (0)

yii2-limetheme
==============

[](#yii2-limetheme)

Custom theme components and parts of function group

这是一套基于bootstrap框架编写的后台模板主题，和PHP小部件

[!["Yii2 Limefamily Presentation"](https://github.com/namebjp/yii2-limetheme/raw/master/images/limefamilyBackend.png)](https://github.com/namebjp/yii2-limetheme/blob/master/images/limefamilyBackend.png)资产.Limefamily plugins.依赖加载 :

```
use yii\web\AssetBundle;

class LimeFamilyAsset extends AssetBundle
{
    public $sourcePath = '@vendor/limefamily/static-theme/dist';
    public $css = [
        'css/limefamily.min.css',
        'css/limefamily-skins.min.css',
    ];
    public $js = [
        'js/limefamily.min.js'
    ];
    public $depends = [
        'yii\web\JqueryAsset',
        'yii\bootstrap\BootstrapAsset',
        'yii\bootstrap\BootstrapPluginAsset',
    ];
}
```

### 左侧 sidebarMenu 组件示例:

[](#左侧-sidebarmenu-组件示例)

左侧 SidebarMenu 组件调用和数据事例

```
    /**
     * $pparam 'itmes'. 数组内字段包括(详情去查看组件源码)：
     *
     * - label: string, required, the nav item label.
     * - url: optional, the item's URL. Defaults to "#".
     * - left-icon: 可以根据 "Font Awesome"或"bootstrap ui自带的" 图标来填充 默认的是："fa-pie-chart".
     * - visible: boolean, optional, whether this menu item is visible. Defaults to true.
     * - linkOptions: array, optional, the HTML attributes of the item's link.
     * - options: array, optional, the HTML attributes of the item container (LI).
     * - small-icon：当没有字列表时可设置对应的标志 类型 "array"
     * - active: boolean, optional, whether the item should be on active state or not.
     * - treeviewMenuOptions: array, optional, the HTML options that will passed to the [[Dropdown]] widget.
     * - items: array|string, optional, the configuration array for creating a [[Dropdown]] widget,
     *   or a string representing the dropdown menu. Note that Bootstrap does not support sub-dropdown menus.
    */
    $menuItems = array();
    if (Yii::$app->user->isGuest) {
        $menuItems[] = ['label' => '登录', 'url' => ['/site/login']];
    } else {
        $menuItems = Yii::$app->user->identity->getAssignedMenu();
        $products = Yii::$app->user->identity->getAssignedProducts();
        $menuItems[] = ['label' => Yii::$app->user->identity->true_name,
            'left-icon' => 'fa-cog',
            'items' =>[
                ['label' => '修改密码', 'url' => ['/site/reset-password']],
                ['label' => '退出 (' . Yii::$app->user->identity->login_code . ')', 'url' => ['/site/logout']],
            ]
        ];
    }
    echo limefamily\limetheme\widgets\SidebarMenu::widget([
        'items' => $menuItems
    ])
```

### 单一条件搜索框示例：

[](#单一条件搜索框示例)

多配合ActiveForm小部件应用，使用示例：

```
    use ActiveForm;

    $form = ActiveForm::begin(['id' => 'search','method'=>'get','action'=>'index.php?r=***']);
    echo limefamily\limetheme\widgets\SearchComponent::widget([
        'placeholder'=>'客户姓名/合同编号',
        'searchName'=>'param',
        'inputOptions'=>['value'=>isset($searchParams['param']) ? $searchParams['param'] : ''],
    ]);
    ActiveForm::end();
```

### 在GridView 中使用分页组件：

[](#在gridview-中使用分页组件)

```
    GridView::widget([
        'dataProvider' => $dataProvider,
        'pager'=>[
           'class'=>'limefamily\limetheme\widgets\LinkPager',
        ],
        ...
    ])
    或直接用：（使用默认配置）
    limefamily\limetheme\widgets\GridView::widget([
        'dataProvider' => $dataProvider,
        ...
    ])
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity68

Established project with proven stability

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 ~28 days

Recently: every ~23 days

Total

23

Last Release

2445d ago

### Community

Maintainers

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

---

Tags

yii2themebootstraplime

### Embed Badge

![Health badge](/badges/limefamily-yii2-limetheme/health.svg)

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

###  Alternatives

[romdim/yii2-bootstrap-material

Composer package for implementing FezVrasta's bootstrap material design in Yii2.

1910.9k3](/packages/romdim-yii2-bootstrap-material)

PHPackages © 2026

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