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(1y ago)130Apache-2.0PHPPHP ^8.2

Since Oct 31Pushed 7mo agoCompare

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

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

31

—

LowBetter than 66% of packages

Maintenance55

Moderate activity, may be stable

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

399d ago

PHP version history (2 changes)0.1PHP ^8.0

0.1.1PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1903831?v=4)[chengyao](/maintainers/chengyao)[@Chengyao](https://github.com/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)
```

###  Alternatives

[arm092/livewire-datatables

Advanced datatables using Laravel, Livewire, Tailwind CSS and Alpine JS

3059.5k](/packages/arm092-livewire-datatables)[hirasso/focal-point-picker

Zero-dependency custom focal point picker for your WordPress images 🎯

417.8k](/packages/hirasso-focal-point-picker)[sitegeist/inspectorgadget

Edit value objects in the inspector

1345.0k2](/packages/sitegeist-inspectorgadget)

PHPackages © 2026

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