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

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

xuey490/config
==============

FssPHP Configuration loader library,supporting PHP/JSON/INI with caching (namespace Framework\\Config)

1.0.4(5mo ago)1101MITPHPPHP &gt;=8.1

Since Dec 2Pushed 5mo ago1 watchersCompare

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

READMEChangelog (5)Dependencies (3)Versions (6)Used By (1)

### 功能

[](#功能)

读取指定目录下的文件，以数组的形式缓存成文件，需要的时候，可以按键值读取。可以设置排除文件，比如routes.php这种路由配置文件，默认一般不返回数组。 支持多种格式，如php，json，ini等。

### 安装

[](#安装)

`composer require xuey490/config`

### 快速开始（目录方式）

[](#快速开始目录方式)

```
use Framework\Config\Config;
use Framework\Config\Cache\ConfigCache;

$cacheFile = sys_get_temp_dir() . '/myapp_config.cache.php';
$cache = new ConfigCache($cacheFile, 300); // TTL 300s

$config = new Config(__DIR__ . '/config', $cache, null, ['routes.php', 'services.php']);

// 第一次会读取目录并写缓存（不包括 routes.php, services.php）
$all = $config->load();

// 使用点语法读取
$dbHost = $config->get('database.host', '127.0.0.1');

```

### 欢迎star &amp; fork

[](#欢迎star--fork)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance72

Regular maintenance activity

Popularity8

Limited adoption so far

Community9

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

Total

5

Last Release

166d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/830041f8bfd4d15e9a2693ed148d39ae3ca8ebb6a8a0eb8d1be7d97577f27fc0?d=identicon)[xuey490](/maintainers/xuey490)

---

Top Contributors

[![xuey490](https://avatars.githubusercontent.com/u/237189208?v=4)](https://github.com/xuey490 "xuey490 (12 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[wordpress/phpdoc-parser

Static code parser for WordPress source.

24220.0k](/packages/wordpress-phpdoc-parser)[nickford/acf-swatch

This is a simple ACF Add-on field allowing the creation of color swatches that behave as radio buttons.

7610.2k1](/packages/nickford-acf-swatch)

PHPackages © 2026

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