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

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

zhan3333/config
===============

06PHP

Since Jun 1Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

功能
==

[](#功能)

- 加载php配置文件
- 加载php配置文件夹
- 批量加载php配置文件

示例
==

[](#示例)

```
require 'vendor/autoload.php';

use LoadConfig\Config;

// 加载文件夹
$path = '/rootpath/config';
$config = new Config($path);

// 加载单个文件
$path = '/path/to/config/databases.php';
$config = new Config($path);

// 加载多个文件
$paths = [
    '/rootpath/config',
    '/path/to/config/databases.php',
];
$config = new Config($paths);

// 取值
$host = $config->get('databases.mysql.host');
$host = $config['databses.mysql.host'];

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![zhan3333](https://avatars.githubusercontent.com/u/15830778?v=4)](https://github.com/zhan3333 "zhan3333 (5 commits)")

### Embed Badge

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

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

###  Alternatives

[composer/satis

Simple Repository Generator

3.3k1.4M19](/packages/composer-satis)[hiqdev/hidev

Automation tool mixed with code generator for easier continuous development

3029.6k28](/packages/hiqdev-hidev)

PHPackages © 2026

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