PHPackages                             yangyifan/config-helper - 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. yangyifan/config-helper

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

yangyifan/config-helper
=======================

v0.1(9y ago)122.3k1MITPHP

Since Dec 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/tyua07/config-helper)[ Packagist](https://packagist.org/packages/yangyifan/config-helper)[ RSS](/packages/yangyifan-config-helper/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

### 配置帮助类

[](#配置帮助类)

```
一个简单的配置信息帮助类，方便自己管理一个对象的配置信息。

```

#### 安装

[](#安装)

```
composer require yangyifan/config-helper:v0.1

```

#### 使用

[](#使用)

###### 初始化

[](#初始化)

```
use Yangyifan\Config\Config;

$config = new Config([
           'a' => 'a',
           'b' => 'b',
           'c' => 'c',
       ]);

```

###### 对象方式使用

[](#对象方式使用)

```
    // 判断是否存在
    $config->has('a');

    // 获取
    $config->get('a');

    // 设置
    $config->set('a', 'a');

    // 移除
    $config->remove('a');

```

###### 数组方式使用

[](#数组方式使用)

```
    // 判断是否存在
    isset($config['a']);

    // 获取
    $config['a']

    // 设置
    $config['a'] = 'a';

    // 移除
    unset($config['a']);

```

###### 协议

[](#协议)

MIT

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

3432d ago

### Community

Maintainers

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

---

Top Contributors

[![tyua07](https://avatars.githubusercontent.com/u/4219999?v=4)](https://github.com/tyua07 "tyua07 (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yangyifan-config-helper/health.svg)

```
[![Health](https://phpackages.com/badges/yangyifan-config-helper/health.svg)](https://phpackages.com/packages/yangyifan-config-helper)
```

###  Alternatives

[felixnagel/t3extblog

A record based blog extension for TYPO3 CMS. Easy to use and packed with features (incl. comments, subscriptions for comments and posts, Wordpress like subscription manager, reasonable email sending in FE and BE, GDPR ready, BE modules, Dashboard widgets, RSS, Sitemap, ...). Flexible and powerful!

3421.6k](/packages/felixnagel-t3extblog)

PHPackages © 2026

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