PHPackages                             islamrumon/laravel\_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. islamrumon/laravel\_config

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

islamrumon/laravel\_config
==========================

Laravel provider to be able to rewrite configuration

2.0.0(2y ago)0177MITPHPPHP ^8.1

Since Jul 3Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/islamrumon/laravel_config)[ Packagist](https://packagist.org/packages/islamrumon/laravel_config)[ Docs](http://octobercms.com)[ RSS](/packages/islamrumon-laravel-config/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (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.

Support
-------

[](#support)

This provider is designed to be used in Laravel from `5.4` version.

Setup
-----

[](#setup)

Install through composer:

```
composer require islamrumon/laravel-config-writer:dev-main

```

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

```
October\Rain\Config\ServiceProvider::class,
```

### Lumen case

[](#lumen-case)

Add this to `bootstrap/app.php` in the 'service providers' section declaration:

```
$app->register(October\Rain\Config\ServiceProvider::class);
```

Usage
-----

[](#usage)

You can write to config files like this:

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

app('config')->write('app.url', 'http://domain.com');
```

### Outside Laravel

[](#outside-laravel)

The `Rewrite` class can be used anywhere.

```
$writeConfig = new October\Rain\Config\DataWriter\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

32

—

LowBetter than 72% of packages

Maintenance48

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Unknown

Total

1

Last Release

1050d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/52ec957cc12a12e5810bd491d27266ed771a296c65eb42085c04961b41219402?d=identicon)[islamrumon](/maintainers/islamrumon)

---

Top Contributors

[![islamrumon](https://avatars.githubusercontent.com/u/19491336?v=4)](https://github.com/islamrumon "islamrumon (16 commits)")

---

Tags

laravelconfigproviderwriteoctober cmsoctober

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[daftspunk/laravel-config-writer

Laravel provider to be able to rewrite configuration

17548.8k1](/packages/daftspunk-laravel-config-writer)

PHPackages © 2026

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