PHPackages                             qingbing/yii2-configure - 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. qingbing/yii2-configure

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

qingbing/yii2-configure
=======================

yii配置组件，包含：网站配置、表头配置、表单配置、替换配置等

1.0.2(4y ago)05MITPHPPHP ^7.1.0

Since Dec 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/qingbing/yii2-configure)[ Packagist](https://packagist.org/packages/qingbing/yii2-configure)[ Docs](http://www.phpcorner.net)[ RSS](/packages/qingbing-yii2-configure/feed)WikiDiscussions master Synced 3w ago

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

yii-portal
==========

[](#yii-portal)

yii配置组件，包含：网站配置、表头配置、表单配置等

使用
==

[](#使用)

一、配置
----

[](#一配置)

### 1.1 配置控制器 web.php

[](#11-配置控制器-webphp)

```
'controllerMap' => [
    // table 表头控制
    'header-category' => \YiiConfigure\tableHeader\controllers\HeaderCategoryController::class,
    'header-option'   => \YiiConfigure\tableHeader\controllers\HeaderOptionController::class,
    // form 表单控制
    'form-category'   => \YiiConfigure\form\controllers\FormCategoryController::class,
    'form-option'     => \YiiConfigure\form\controllers\FormOptionController::class,
    'form-setting'    => \YiiConfigure\form\controllers\FormSettingController::class,
]
```

### 1.2 配置控制开关 web.php

[](#12-配置控制开关-webphp)

```
'components' => [
    'bootAccessLog'  => [
        'class'          => \YiiAccessLog\boots\AccessLogBootstrap::class,
        'accessLogModel' => \YiiAccessLog\models\AccessLogs::class, // 日志模型类
        'open'           => define_var('COM_BOOT_ACCESS_LOG_OPEN', true), // 开启访问日志
        'ignorePaths'    => [
            '*/list', // 列表的日志不记录，太大
        ],
    ],
],
```

### 1.3 组件常量配置 define-local.php

[](#13-组件常量配置-define-localphp)

```
// bootAccessLog 组件配置
defined('COM_BOOT_ACCESS_LOG_OPEN') or define('COM_BOOT_ACCESS_LOG_OPEN', true); // 开启访问日志
```

二、面板使用说明
--------

[](#二面板使用说明)

### 2.1 对于表头类型的操作

[](#21-对于表头类型的操作)

- 对于"是否开放"字段只有超级管理员能够进行操作
- 对于"开放"的表头类型，只有超级管理员能编辑和删除

### 2.2 对于表单类型的操作

[](#22-对于表单类型的操作)

- 对于"是否开放"字段只有超级管理员能够进行操作
- 对于"开放"的表单类型，只有超级管理员能编辑和删除

### 2.3 对于替换配置

[](#23-对于替换配置)

- \\YiiConfigure\\replaceSetting\\controllers\\ReplaceSettingController, 替换配置的管理(只能超级管理员操作)
- \\YiiConfigure\\controllers\\web\\ReplaceSettingController, 只提供给普通管理员修改配置内容
- 解析 replace-setting 内容
    - Action: \\YiiConfigure\\replaceSetting\\actions\\ReplaceSettingParse
    - Logic: \\YiiConfigure\\replaceSetting\\logic\\ReplaceSetting::getInstance($code)-&gt;getContent($fields)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Every ~87 days

Total

2

Last Release

1586d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33932784?v=4)[qingbing](/maintainers/qingbing)[@qingbing](https://github.com/qingbing)

---

Top Contributors

[![qingbing](https://avatars.githubusercontent.com/u/33932784?v=4)](https://github.com/qingbing "qingbing (32 commits)")

---

Tags

phpyiisite-configureform-configureheader-configurereplace-configure

### Embed Badge

![Health badge](/badges/qingbing-yii2-configure/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)

PHPackages © 2026

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