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

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

devdojo/config-writer
=====================

Laravel provider to be able to rewrite configuration

0.0.7(2y ago)179.2k↓11.1%2MITPHPPHP &gt;=7.1.0

Since May 9Pushed 2y agoCompare

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

READMEChangelog (7)Dependencies (3)Versions (8)Used By (2)

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 "daftspunk/laravel-config-writer"

```

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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 52.8% 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

7

Last Release

739d ago

PHP version history (2 changes)0.0.1PHP ^7.4.0 || ^8.0

0.0.5PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/cbf9537394d6d9f5570b2ac75d039fe87ff5a37ce2c0504908790d04dc82c3f1?d=identicon)[devdojo](/maintainers/devdojo)

---

Top Contributors

[![jaxwilko](https://avatars.githubusercontent.com/u/31214002?v=4)](https://github.com/jaxwilko "jaxwilko (19 commits)")[![bennothommo](https://avatars.githubusercontent.com/u/15900351?v=4)](https://github.com/bennothommo "bennothommo (7 commits)")[![tnylea](https://avatars.githubusercontent.com/u/601261?v=4)](https://github.com/tnylea "tnylea (7 commits)")[![LukeTowers](https://avatars.githubusercontent.com/u/7253840?v=4)](https://github.com/LukeTowers "LukeTowers (3 commits)")

---

Tags

laravelconfigproviderwriteoctober cmsoctober

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

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