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

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

next/config
===========

0.2.0(11mo ago)130Apache-2.0PHPPHP ^8.2

Since Oct 31Pushed 6mo agoCompare

[ Source](https://github.com/next-laboratory/config)[ Packagist](https://packagist.org/packages/next/config)[ RSS](/packages/next-config/feed)WikiDiscussions master Synced 1mo ago

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

这是一款独立的组件包，可以使用点语法来获取加载的配置

```
$repository = new \Next\Config\Repository();
$repository->set('app', [
    'debug' => false,
]);
// 获取配置
$repository->get('app.debug');
```

> 注意：$repository示例应该保持单例，避免重复加载，加载配置的规则如下

例如对于app.php配置文件内容如下

```
return [
    'debug' => true,
];
```

加载后会按照文件名作为外层数组的键，因此获取配置需要使用`$repository->get('app.debug'')`，支持使用点语法。

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance60

Regular maintenance activity

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

Total

3

Last Release

353d ago

PHP version history (2 changes)0.1PHP ^8.0

0.1.1PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![bbuugg](https://avatars.githubusercontent.com/u/64066545?v=4)](https://github.com/bbuugg "bbuugg (14 commits)")

### Embed Badge

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

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

PHPackages © 2026

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