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

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

alverated/config
================

Configuration extension

012PHP

Since May 17Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)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 and booleans.

### Usage Instructions

[](#usage-instructions)

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

```
'October\Rain\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 October\Rain\Config\Rewrite;
$writeConfig->toFile('path/to/config.php', [
    'item' => 'new value',
    'nested.config.item' => 'value'
]);
```

Original Repo

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.6% 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://www.gravatar.com/avatar/ad897328cf6d1b599fe4ce5d13b96b0decf1ed4a6bd50621823bbc563106add6?d=identicon)[alverated](/maintainers/alverated)

---

Top Contributors

[![greatwitenorth](https://avatars.githubusercontent.com/u/547583?v=4)](https://github.com/greatwitenorth "greatwitenorth (15 commits)")[![daftspunk](https://avatars.githubusercontent.com/u/1392869?v=4)](https://github.com/daftspunk "daftspunk (9 commits)")[![martink635](https://avatars.githubusercontent.com/u/444687?v=4)](https://github.com/martink635 "martink635 (2 commits)")[![alver75](https://avatars.githubusercontent.com/u/7134145?v=4)](https://github.com/alver75 "alver75 (1 commits)")[![alverated](https://avatars.githubusercontent.com/u/7272110?v=4)](https://github.com/alverated "alverated (1 commits)")

### Embed Badge

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

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

###  Alternatives

[hyperf/di

A DI for Hyperf.

182.8M594](/packages/hyperf-di)[jellybool/translug

Translate Chinese And Then Make It Sluggable

14845.7k](/packages/jellybool-translug)[pantheon-systems/quicksilver-pushback

Push commits made via the Pantheon dashboard back to original GitHub repository.

153.1M18](/packages/pantheon-systems-quicksilver-pushback)[laravel-admin-ext/latlong

Latitude &amp; Longitude selector

7056.3k](/packages/laravel-admin-ext-latlong)[setono/sylius-mailchimp-plugin

Mailchimp plugin for Sylius.

1137.2k](/packages/setono-sylius-mailchimp-plugin)

PHPackages © 2026

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