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

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

feihuangorg/config
==================

Configuration extension

08PHP

Since Jul 21Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Config Writer
---------------------

[](#laravel-config-writer)

Write to Laravel Config files and maintain file integrity.

This library is an extension of the Config component used by Laravel. It adds the ability to write to configuration files.

You can rewrite array values inside a basic configuration file that returns a single array definition (like a Laravel config file) whilst maintaining the file integrity, leaving comments and advanced settings intact.

The following value types are supported for writing: strings, integers, booleans and single-dimension arrays.

### Usage Instructions

[](#usage-instructions)

Add this to `app/config/app.php` under the 'providers' key:

```
'Feihuangorg\Config\ConfigServiceProvider',
```

You can now write to config files:

```
Config::write('app.url', 'http://octobercms.com');
```

### Usage outside Laravel

[](#usage-outside-laravel)

The `Rewrite` class can be used anywhere.

```
$writeConfig = new Feihuangorg\Config\Rewrite;
$writeConfig->toFile('path/to/config.php', [
    'item' => 'new value',
    'nested.config.item' => 'value',
    'arrayItem' => ['Single', 'Level', 'Array', 'Values'],
    'numberItem' => 3,
    'booleanItem' => true
]);
```

###  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

Maturity43

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/13871977?v=4)[feihuangorg](/maintainers/feihuangorg)[@feihuangorg](https://github.com/feihuangorg)

---

Top Contributors

[![lifushui](https://avatars.githubusercontent.com/u/43906989?v=4)](https://github.com/lifushui "lifushui (10 commits)")

### Embed Badge

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

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

PHPackages © 2026

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